anyone getting this warning while running flows on...
# prefect-community
d
anyone getting this warning while running flows on AWS EKS ?
Copy code
/usr/local/lib/python3.9/runpy.py:127: 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
  warn(RuntimeWarning(msg))
1
r
Yup seen it, been told they will fix and you can ignore
🙏 1
d
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/engine.py", 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/utilities.py", line 47, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/prefect/deployments.py", 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/asyncutils.py", 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/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/usr/local/lib/python3.9/site-packages/prefect/flows.py", 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/flows.py", line 746, in load_flow_from_script
    return select_flow(
  File "/usr/local/lib/python3.9/site-packages/prefect/flows.py", line 693, in select_flow
    raise MissingFlowError(
prefect.exceptions.MissingFlowError: Flow 'sso_tokens_flow' not found in script 'flows/process_sso_integrations_flows/sso_tokens_flow.py'. 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
r
a few had that since the release yesterday
d
yeahh! some flow runs for the same deployment work and some throw this error. are we getting a fix on this ?
r
I'm not from Prefect:)
d
oh . so sorry
r
no probs
j
Yep @Deepanshu Aggarwal. Fix has been merged - see this thread.