ModuleNotFoundError: No module named 'azure.storage' not always reproducableSee original GitHub issue
Which service(blob, file, queue) does this issue concern?
queue (possibly others?)
What problem was encountered?
azure-storage-queue (in a clean virtualenv) frequently (so not always) leads to a module installation which cannot be imported.
The installation steps followed are the ones documented in https://docs.microsoft.com/en-us/azure/storage/queues/storage-python-how-to-use-queue-storage
In a fresh Python-3.6.3 virtualenv
$ pip install azure-storage-queue ... installation happens successfully, no errors ... $ python -c 'from azure.storage.queue import QueueService' Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'azure.storage'
Sometimes the installation does result into a module which can be imported without errors but most often, … it does not.
Have you found a mitigation/solution?
A mitigation yes
$ pip install azure-storage-queue --upgrade --force-reinstall
Fixes the problem.
Keep in mind that the installation is done on a clean virtualenv.
I’d expect the import to succeed without any further ado after installing
If specific details are required, pls let me know.
- Created 6 years ago
- Comments:15 (5 by maintainers)
Top GitHub Comments
Having exactly this problem after
conda install azure.
I am having the same issue.
Using a python 3.7 dev container, as clean as an environment I can get.
azure-core==1.7.0 azure-storage-blob==12.3.2 certifi==2020.6.20 cffi==1.14.1 chardet==3.0.4 cryptography==3.0 idna==2.10 isodate==0.6.0 msrest==0.6.18 oauthlib==3.1.0 pycparser==2.20 requests==2.24.0 requests-oauthlib==1.3.0 six==1.15.0 urllib3==1.25.10