https://prefect.io logo
s

Samay Kapadia

02/20/2022, 2:35 PM
I still can’t
pip install prefect[azure]
on my m1 mac 😞
a

Anna Geller

02/20/2022, 2:52 PM
I can't reproduce myself. Is this your issue? https://github.com/PrefectHQ/prefect/issues/5338 Are you using Azure tasks from the task library? You can always install the required dependencies manually e.g. instead of installing pip install "prefect[aws]", you can install prefect and boto3
k

Kevin Kho

02/20/2022, 4:07 PM
Maybe try lowering your pip version to a less aggressive dependency resolver. The azure packages are really hard to resolve
s

Samay Kapadia

02/21/2022, 9:06 AM
@Anna Geller Yup that’s the issue. What version of pip are you using? it fails for me with python 3.8.12 installed via pyenv and pip 22. Also fails with poetry. I am trying to use azure for flow storage @Kevin Kho Would you have an example command for that?
a

Anna Geller

02/21/2022, 9:32 AM
So it looks like there is a single package you need to find the right version for which is "azure-storage-blob" - in master we have azure-storage-blob >= 12.1.0, perhaps you can start with 12.1.0 then? I think an example of what Kevin meant is:
Copy code
pip install azure-storage-blob --use-feature 2020-resolver
k

Kevin Kho

02/21/2022, 1:08 PM
Anna is right with the resolver
s

Samay Kapadia

02/22/2022, 8:49 AM
It works with pip but not with poetry, which is the tool we use to manage our python dependencies 😞 . @Anna Geller could you try to run
poetry add prefect[azure]
? You can install it through here https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions
I have a workaround right where I run an x86 docker container, but it would be nice if it worked natively too. Thanks again for the help!
3 Views