azure-storage-python: ModuleNotFoundError: No module named 'azure.storage' not always reproducable

Which service(blob, file, queue) does this issue concern?

queue (possibly others?)

What problem was encountered?

Installing 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 azure-storage-queue. If specific details are required, pls let me know.

Tnx,

Jelle

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 6
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Having exactly this problem after conda install azure.