Kishan
11/11/2022, 9:26 PMNo 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.
gcs_block = GCS.load("gcs-block")
infra_block = KubernetesJob(
image="us-east1-docker.pkg.dev/{MY PROJECT}/prefect-agents/{MY IMAGE}",
env=dict(PREFECT_LOGGING_LEVEL="DEBUG"),
)
Zanie
11/11/2022, 10:01 PMdocker run <your-image> python -m "prefect.engine"
?Kishan
11/11/2022, 10:03 PM/usr/local/bin/python: No module named prefect.engine.__main__; 'prefect.engine' is a package and cannot be directly executed
# Dockerfile
FROM prefecthq/prefect:latest
RUN pip install gcsfs
Zanie
11/11/2022, 10:15 PMprefect:2-latest
is the tag you want, we did not update latest
from v1 to prevent breaking things for existing usersKishan
11/11/2022, 11:04 PM