I'm trying to run a deployment as a KubernetesJob on my prefect agent hosted on GKE. It says the flow run is pending and I am getting the following error in the pod
No module named prefect.engine.__main__; 'prefect.engine' is a package and cannot be directly executed
. Anyone know what this means?
Also, for additional context, here are the storage and infrastructure blocks I set up.
docker run <your-image> python -m "prefect.engine"
?
Zanie
11/11/2022, 10:02 PM
I’ve never see that error, what kind of Python setup do you have?
k
Kishan
11/11/2022, 10:03 PM
I get
/usr/local/bin/python: No module named prefect.engine.__main__; 'prefect.engine' is a package and cannot be directly executed
Kishan
11/11/2022, 10:04 PM
Im pulling the latest Prefect build in my docker file and so I'm using whatever python setup is in there
Kishan
11/11/2022, 10:04 PM
Copy code
# Dockerfile
FROM prefecthq/prefect:latest
RUN pip install gcsfs
Kishan
11/11/2022, 10:08 PM
Also to note, my GKE cluster is running on "autopilot" which is GKE's automated cluster management service on top of Kubernetes. I'm not sure if this may be causing any issues but just wanted to give that additional context.
z
Zanie
11/11/2022, 10:15 PM
Ahh
Zanie
11/11/2022, 10:16 PM
prefect:2-latest
is the tag you want, we did not update
latest
from v1 to prevent breaking things for existing users
Bring 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.