Ying Ting Loo
02/14/2024, 6:53 AMYing Ting Loo
02/14/2024, 6:58 AMFlow could not be retrieved from deployment.
Traceback (most recent call last):
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/tmp/tmph1ld7n0hprefect/data-science-main/flows/transcription/transcription_flow.py", line 9, in <module>
import whisper_transcribe_tasks as w
File "/tmp/tmph1ld7n0hprefect/data-science-main/flows/transcription/whisper_transcribe_tasks.py", line 7, in <module>
from faster_whisper import WhisperModel
ModuleNotFoundError: No module named 'faster_whisper'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/prefect/engine.py", line 422, in retrieve_flow_then_begin_flow_run
else await load_flow_from_flow_run(flow_run, client=client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/client/utilities.py", line 51, in with_injected_client
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/deployments/deployments.py", line 264, 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.11/site-packages/prefect/utilities/asyncutils.py", line 91, in run_sync_in_worker_thread
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/flows.py", line 1550, in load_flow_from_entrypoint
flow = import_object(entrypoint)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 201, in import_object
module = load_script_as_module(script_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 164, in load_script_as_module
raise ScriptError(user_exc=exc, path=path) from exc
prefect.exceptions.ScriptError: Script at 'flows/transcription/transcription_flow.py' encountered an exception: ModuleNotFoundError("No module named 'faster_whisper'")
Andy Irvine
02/14/2024, 10:21 AM:latest
is used
Set image_pull_policy : Always
or use a tag/hash you know has the dependencies.Ying Ting Loo
02/14/2024, 10:34 AM:latest
Andy Irvine
02/14/2024, 10:45 AMNormal Scheduled 7m3s default-scheduler Successfully assigned prefect/kappa5-drayan-r-mmfnw-lwzph to gke-ba3ba89f-8acf │
│ Normal Pulling 7m2s kubelet Pulling image "europe-west3-docker.pkg.dev/prefect-base/master:xyx" │
│ Normal Pulled 7m2s kubelet Successfully pulled image "europe-west3-docker.pkg.dev/prefect-base/master:xyx" in 429.609283ms (429.627533ms including waiting) │
│ Normal Created 7m2s kubelet Created container prefect-job │
│ Normal Started 7m2s kubelet Started container prefect-job
Nate
02/14/2024, 2:26 PMis there a way to specify it at the deployment?yep you can override any of the
job_variables
present on a work pool at the deployment level in your prefect.yaml
like this example (where I'm overriding image
, but you could just as well override image_pull_policy
)Ying Ting Loo
02/28/2024, 6:33 AMNate
02/28/2024, 1:45 PMYing Ting Loo
02/29/2024, 2:16 AMMatthew Bell
03/11/2024, 6:56 AMMatthew Bell
03/11/2024, 6:56 AMYing Ting Loo
03/11/2024, 7:01 AMMatthew Bell
03/11/2024, 7:05 AMYing Ting Loo
06/10/2024, 7:48 AMParash
06/14/2024, 3:44 AMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by