Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.54k stars 2.77k forks source link

No module named 'azure.storage' #3623

Closed irisava closed 5 years ago

irisava commented 5 years ago

Hello, I have tried the instruction to install, reinstall the azure package. However, all the time I am still getting the ModuleNotFoundError: No module named 'azure.storage'.

following are the results of: pip freeze azure==4.0.0 azure-applicationinsights==0.1.0 azure-batch==4.1.3 azure-common==1.1.16 azure-cosmosdb-nspkg==2.0.2 azure-cosmosdb-table==1.0.5 azure-datalake-store==0.0.34 azure-eventgrid==1.2.0 azure-graphrbac==0.40.0 azure-keyvault==1.1.0 azure-loganalytics==0.1.0 azure-mgmt==4.0.0 azure-mgmt-advisor==1.0.1 azure-mgmt-applicationinsights==0.1.1 azure-mgmt-authorization==0.50.0 azure-mgmt-batch==5.0.1 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==0.2.0 azure-mgmt-cdn==3.0.0 azure-mgmt-cognitiveservices==3.0.0 azure-mgmt-commerce==1.0.1 azure-mgmt-compute==4.3.1 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.2.0 azure-mgmt-containerregistry==2.2.0 azure-mgmt-containerservice==4.2.2 azure-mgmt-cosmosdb==0.4.1 azure-mgmt-datafactory==0.6.0 azure-mgmt-datalake-analytics==0.6.0 azure-mgmt-datalake-nspkg==2.0.0 azure-mgmt-datalake-store==0.5.0 azure-mgmt-datamigration==1.0.0 azure-mgmt-devspaces==0.1.0 azure-mgmt-devtestlabs==2.2.0 azure-mgmt-dns==2.1.0 azure-mgmt-eventgrid==1.0.0 azure-mgmt-eventhub==2.1.0 azure-mgmt-hanaonazure==0.1.1 azure-mgmt-iotcentral==0.1.0 azure-mgmt-iothub==0.5.0 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 azure-mgmt-loganalytics==0.2.0 azure-mgmt-logic==3.0.0 azure-mgmt-machinelearningcompute==0.4.1 azure-mgmt-managementgroups==0.1.0 azure-mgmt-managementpartner==0.1.0 azure-mgmt-maps==0.1.0 azure-mgmt-marketplaceordering==0.1.0 azure-mgmt-media==1.0.0 azure-mgmt-monitor==0.5.2 azure-mgmt-msi==0.2.0 azure-mgmt-network==2.2.1 azure-mgmt-notificationhubs==2.0.0 azure-mgmt-nspkg==3.0.2 azure-mgmt-policyinsights==0.1.0 azure-mgmt-powerbiembedded==2.0.0 azure-mgmt-rdbms==1.4.0 azure-mgmt-recoveryservices==0.3.0 azure-mgmt-recoveryservicesbackup==0.3.0 azure-mgmt-redis==5.0.0 azure-mgmt-relay==0.1.0 azure-mgmt-reservations==0.2.1 azure-mgmt-resource==2.0.0 azure-mgmt-scheduler==2.0.0 azure-mgmt-search==2.0.0 azure-mgmt-servicebus==0.5.2 azure-mgmt-servicefabric==0.2.0 azure-mgmt-signalr==0.1.1 azure-mgmt-sql==0.9.1 azure-mgmt-storage==2.0.0 azure-mgmt-subscription==0.2.0 azure-mgmt-trafficmanager==0.50.0 azure-mgmt-web==0.35.0 azure-nspkg==3.0.2 azure-servicebus==0.21.1 azure-servicefabric==6.3.0.0 azure-servicemanagement-legacy==0.20.6 azure-storage==0.33.0 azure-storage-blob==1.3.1 azure-storage-common==1.3.0 azure-storage-file==1.3.1 azure-storage-nspkg==3.0.0 azure-storage-queue==1.3.0

Could anyone help on this? Thanks a lot!

lmazuel commented 5 years ago

Hi @irisava Could you confirm version of Python, version of pip, platform (Windws, Ubuntu, etc.) and exact command used to install. Thanks you

irisava commented 5 years ago

Hello @lmazuel Thank you for the reply!

Following is the info of my working environment: Python 3.6.5 pip 18.1 from ...\appdata\local\programs\python\python36-32\lib\site-packages\pip (python 3.6) Windows 10 Last command used in cmd: pip install azure-storage

Last packages after reinstall: azure 4.0.0 azure-applicationinsights 0.1.0 azure-batch 4.1.3 azure-common 1.1.16 azure-cosmosdb-nspkg 2.0.2 azure-cosmosdb-table 1.0.5 azure-datalake-store 0.0.34 azure-eventgrid 1.2.0 azure-graphrbac 0.40.0 azure-keyvault 1.1.0 azure-loganalytics 0.1.0 azure-mgmt 4.0.0 azure-mgmt-advisor 1.0.1 azure-mgmt-applicationinsights 0.1.1 azure-mgmt-authorization 0.50.0 azure-mgmt-batch 5.0.1 azure-mgmt-batchai 2.0.0 azure-mgmt-billing 0.2.0 azure-mgmt-cdn 3.0.0 azure-mgmt-cognitiveservices 3.0.0 azure-mgmt-commerce 1.0.1 azure-mgmt-compute 4.3.1 azure-mgmt-consumption 2.0.0 azure-mgmt-containerinstance 1.2.1 azure-mgmt-containerregistry 2.2.0 azure-mgmt-containerservice 4.2.2 azure-mgmt-cosmosdb 0.4.1 azure-mgmt-datafactory 0.6.0 azure-mgmt-datalake-analytics 0.6.0 azure-mgmt-datalake-nspkg 2.0.0 azure-mgmt-datalake-store 0.5.0 azure-mgmt-datamigration 1.0.0 azure-mgmt-devspaces 0.1.0 azure-mgmt-devtestlabs 2.2.0 azure-mgmt-dns 2.1.0 azure-mgmt-eventgrid 1.0.0 azure-mgmt-eventhub 2.1.0 azure-mgmt-hanaonazure 0.1.1 azure-mgmt-iotcentral 0.1.0 azure-mgmt-iothub 0.5.0 azure-mgmt-iothubprovisioningservices 0.2.0 azure-mgmt-keyvault 1.1.0 azure-mgmt-loganalytics 0.2.0 azure-mgmt-logic 3.0.0 azure-mgmt-machinelearningcompute 0.4.1 azure-mgmt-managementgroups 0.1.0 azure-mgmt-managementpartner 0.1.0 azure-mgmt-maps 0.1.0 azure-mgmt-marketplaceordering 0.1.0 azure-mgmt-media 1.0.0 azure-mgmt-monitor 0.5.2 azure-mgmt-msi 0.2.0 azure-mgmt-network 2.2.1 azure-mgmt-notificationhubs 2.0.0 azure-mgmt-nspkg 3.0.2 azure-mgmt-policyinsights 0.1.0 azure-mgmt-powerbiembedded 2.0.0 azure-mgmt-rdbms 1.4.1 azure-mgmt-recoveryservices 0.3.0 azure-mgmt-recoveryservicesbackup 0.3.0 azure-mgmt-redis 5.0.0 azure-mgmt-relay 0.1.0 azure-mgmt-reservations 0.2.1 azure-mgmt-resource 2.0.0 azure-mgmt-scheduler 2.0.0 azure-mgmt-search 2.0.0 azure-mgmt-servicebus 0.5.2 azure-mgmt-servicefabric 0.2.0 azure-mgmt-signalr 0.1.1 azure-mgmt-sql 0.9.1 azure-mgmt-storage 2.0.0 azure-mgmt-subscription 0.2.0 azure-mgmt-trafficmanager 0.50.0 azure-mgmt-web 0.35.0 azure-nspkg 3.0.2 azure-servicebus 0.21.1 azure-servicefabric 6.3.0.0 azure-servicemanagement-legacy 0.20.6 azure-storage 0.36.0 azure-storage-blob 1.3.1 azure-storage-common 1.3.0 azure-storage-file 1.3.1 azure-storage-nspkg 3.0.0 azure-storage-queue 1.3.0

lmazuel commented 5 years ago

azure-storage and azure-storage-blob/file/queue are incompatible and cannot work together. azure-storage is actually the deprecated old version of the three packages azure-storage-blob/file/queue

Please juste use azure-storage-blob/file/queue or just use azure-storage but not both. azure-storage-blob/file/queue is recommended if you don't have existing code base.

Thank you,

lmazuel commented 5 years ago

Closing for inactivity, since I believe I addressed the initial question. If this is still a problem, feel to open a new issue in the storage repo: https://github.com/Azure/azure-storage-python Thanks,