Aiden Price
03/30/2023, 10:51 AM/usr/local/bin/python: Error while finding module specification for 'prefect.engine' (ModuleNotFoundError: No module named 'prefect')
Our base image has a non-standard WORKDIR
at /home/app
but setting PREFECT_HOME
on the container doesn’t seem to fix it.
Any help would be greatly appreciated.Ryan Peden
03/30/2023, 1:12 PMdocker run -it my-image:latest bash
. Once you're in, try running python -m prefect.engine
and see if you get the same error message. If so, run pip list
to see what Python actually thinks is installed.Aiden Price
03/31/2023, 12:27 AMpoetry run my-web-app
So what is the command/entrypoint that Prefect runs on the start up of a KubernetesJob
? Is there some way to override it?Aiden Price
03/31/2023, 3:44 AM