For my Prefect setup I'm using k8s with workers (i...
# ask-community
d
For my Prefect setup I'm using k8s with workers (image:
2.14.9-python3.11-kubernetes
) + Azure storage to pull the deployment but I'm getting the following error during my flow run
ModuleNotFoundError: No module named 'azure.storage'
Do I need to install prefect-azure and/or adlfs as
EXTRA_PIP_PACKAGES
on the worker to get it to run?
1
n
hi @Devin Flake - looking at this, it looks like prefect azure isnt installed so yeah, you can either • (recommended) write a simple
Dockerfile
that starts
FROM prefecthq/prefect:2.14.9-python3.11-kubernetes
and
RUN pip install prefect-azure==X.X.X
and use that image as your
image
on your work pool • or set
EXTRA_PIP_PACKAGES="prefect-azure"
(this is more convenient in the short term / testing, but is not recommended for prod as you cant guarantee what deps you actually have in your runtime - see this thread)
d
awesome thank you!