-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import name 'BlobServiceClient' #13185
Comments
What version of snowflake connector do you use? I think I saw this error some time ago... |
2.3.7. I have downgraded it to 2.3.6 and now I don't have the error. Should I close the issue or it can still be airflow-related? |
You probably have conflicting versions of snowflake-connector-python have |
What end up working for me was explicitly uninstall the older version of azure-storage |
@JavierLopezT I believe this issue is fixed by #13654 , #13286 |
This is still an issue for me with latest 1.10.x and latest backport providers release. |
Hey @feluelle You likely have the old
The problem was that Azure did a very, very bad thing. Both libraries have overlapping packages and they can override each other when both legacy and new libraries are installed. If you have So if you want to bring the situation under control - remove Let me know if either of those worked. I hope it helps. Maybe also someone could describe it nicely somewhere else in the docs ;) ? |
For now I am closing it with the information that you need to cleanup it in the way described above - I will re-open if I hear otherwise :) |
Why can't we ship the fix to 1.10.x release? :) I don't have azure as an explicit dependency. So I would have to remove azure-storage and reinstall the azure-storage-blob. Can this be automate somehow? :D I mean adding sth to requirements. Or do I have to write bash for that one? |
We could potentially. But it would require #12188 to be back-ported (and possibly few other PRs. I am sure @ephraimbuddy would not be so happy because I think that was one of the most "troublesome" changes he went through ;) Honestly - it is much simpler via backports, even if requires some of hassle with installed packages.
We could potentially add It would have to be an external script. I think it's worth to add. such snippet of 'pip uninistall && pip install ` would be nice but I'd say it should be in documentation. We really want to limit our investment in 1.10 and if we can document workaround and tell people ("but in 2.0 you do not have to do it - so migrate") - this is the best we can do. |
SGTM 👍 and thanks for elaborating :) |
I am using Airflow with docker-compose and Dockerfile. I have just changed in the Dockerfile the version from 1.10.10 to 1.10.14, and I get this import error in all files which involve Snowflake. I am not using Azure at all.
In one particular DAG I also get the error `An HTTP Client raised and unhandled exception: cannot import name 'BlobServiceClient'
Here is the full trace of the error:
`
Might be related with #13093
The text was updated successfully, but these errors were encountered: