Ayah Safeen
02/27/2022, 6:41 AMfrom prefect import flow
cannot import name 'ThreadedChildWatcher' from 'asyncio'
The code :
from prefect import flow
@flow
def common_flow(config: dict):
print("I am a subgraph that shows up in lots of places!")
intermediate_result = 42
return intermediate_result
@flow
def main_flow():
data = common_flow(config={})
# run the flow
flow_state = main_flow()
Anna Geller
prefect --version
Can you import this function without errors?
from asyncio import get_running_loop
Often reinstalling Orion in a new virtual environment and resetting the DB helps in similar cases - you can:
• delete the database file ~/.prefect/orion.db
.
• reset the database with the CLI command prefect orion database reset
• and then restart orion with prefect orion start
Ayah Safeen
03/01/2022, 6:45 AMfrom asyncio import get_running_loop
is running as well without any errors
• there is no orion.db file in venv\Lib\site-packages\prefect directory
• Finally I get the same error mentioned in the previous message when I run those commands prefect orion database reset
prefect orion start
Anna Geller
Ayah Safeen
03/02/2022, 1:39 PMAnna Geller