anyone getting this warning while running flows on...
# prefect-community
anyone getting this warning while running flows on AWS EKS ?
Copy code
/usr/local/lib/python3.9/ RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
Yup seen it, been told they will fix and you can ignore
🙏 1
okay thanks
any idea about the dash and underscore issue in naming ?
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/prefect/", line 262, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.9/site-packages/prefect/client/", line 47, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/prefect/", line 181, in load_flow_from_flow_run
    flow = await run_sync_in_worker_thread(load_flow_from_entrypoint, str(import_path))
  File "/usr/local/lib/python3.9/site-packages/prefect/utilities/", line 69, in run_sync_in_worker_thread
    return await anyio.to_thread.run_sync(call, cancellable=True)
  File "/usr/local/lib/python3.9/site-packages/anyio/", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/", line 937, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/", line 867, in run
    result =, *args)
  File "/usr/local/lib/python3.9/site-packages/prefect/", line 770, in load_flow_from_entrypoint
    return load_flow_from_script(path=flow_path, flow_name=flow_name)
  File "/usr/local/lib/python3.9/site-packages/prefect/", line 746, in load_flow_from_script
    return select_flow(
  File "/usr/local/lib/python3.9/site-packages/prefect/", line 693, in select_flow
    raise MissingFlowError(
prefect.exceptions.MissingFlowError: Flow 'sso_tokens_flow' not found in script 'flows/process_sso_integrations_flows/'. Found the following flows: 'sso-tokens-flow'. Check to make sure that your flow function is decorated with `@flow`.
ive deployed flows with 'sso-tokens-flow' this name but still gettting this error.. which doesnt appear on the retries
a few had that since the release yesterday
yeahh! some flow runs for the same deployment work and some throw this error. are we getting a fix on this ?
I'm not from Prefect:)
oh . so sorry
no probs
Yep @Deepanshu Aggarwal. Fix has been merged - see this thread.