Skip to content
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

ModuleNotFoundError: No module named 'azure.storage.blob' with pip user install #11947

Closed
planetmarshall opened this issue Jun 10, 2020 · 3 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@planetmarshall
Copy link

planetmarshall commented Jun 10, 2020

  • Package Name:
    azure-storage-blob==12.3.1

  • Operating System:
    Windows Server 2016 (Hosted agent on Azure Pipelines)

  • Python Version:
    3.8.3

Describe the bug

ModuleNotFoundError: No module named 'azure.storage.blob'

To Reproduce
Steps to reproduce the behavior:

  1. pip install --user azure-storage-blob
  2. Execute the following code in a script:
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient

Expected behavior
The module is successfully imported

Additional context
Output of pip freeze:

azure-common==1.1.25
azure-core==1.6.0
azure-cosmosdb-nspkg==2.0.2
azure-cosmosdb-table==1.0.6
azure-devops==6.0.0b2
azure-nspkg==3.0.2
azure-storage-blob==12.3.1
azure-storage-common==2.1.0
azure-storage-file==2.1.0

** Workaround **

Omit the --user flag from pip and do a global installation

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 10, 2020
@planetmarshall planetmarshall changed the title ModuleNotFoundError: No module named 'azure.storage.blob' ModuleNotFoundError: No module named 'azure.storage.blob' with pip user install Jun 10, 2020
@kaerm kaerm added Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Jun 10, 2020
@ghost
Copy link

ghost commented Jun 10, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 10, 2020
@kaerm kaerm added Client This issue points to a problem in the data-plane of the library. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jun 10, 2020
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 10, 2020
@lmazuel
Copy link
Member

lmazuel commented Jun 10, 2020

Hi @planetmarshall
You shouldn't have azure-storage-common, so my guess is that you updated blob from the v2.x series, or ask blob v12 and file v2 at the same time (they are incompatible).
A simple pip install (--user) azure-storage-blob==12.3.1 will not pull azure-storage-common, this package being incompatible with the v12 series.
Could you give a little more detail?

@xiafu-msft
Copy link
Contributor

Hi @planetmarshall

It seems your issue has been resolved! We'd close this issue for now, feel free to reopen it is you have any question!

openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this issue Dec 4, 2020
fix monitor package name (Azure#11947)

* fix monitor package name

* fix CI
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

4 participants