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

BlobServiceClient - Cannot import. azure-storage meta package deprecated. #4

Open
DamionWaltermeyer opened this issue Jan 11, 2022 · 0 comments

Comments

@DamionWaltermeyer
Copy link

Error below:

Traceback (most recent call last):

  File "/Users/damionwaltermeyer/git/azure-storage-estimator/azure-storage-estimator.py", line 11, in <module>

    from azure.storage.blob import (BlobServiceClient,

ImportError: cannot import name 'BlobServiceClient' from 'azure.storage.blob' (/usr/local/lib/python3.9/site-packages/azure/storage/blob/__init__.py)


azure-storage-estimator % pip install azure-storage-blob

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621

Requirement already satisfied: azure-storage-blob in /usr/local/lib/python3.9/site-packages (1.5.0)

Requirement already satisfied: azure-storage-common~=1.4 in /usr/local/lib/python3.9/site-packages (from azure-storage-blob) (1.4.2)

Requirement already satisfied: azure-common>=1.1.5 in /usr/local/lib/python3.9/site-packages (from azure-storage-blob) (1.1.27)

Requirement already satisfied: python-dateutil in /usr/local/lib/python3.9/site-packages (from azure-storage-common~=1.4->azure-storage-blob) (2.8.2)

Requirement already satisfied: cryptography in /usr/local/lib/python3.9/site-packages (from azure-storage-common~=1.4->azure-storage-blob) (36.0.1)

Requirement already satisfied: requests in /usr/local/lib/python3.9/site-packages (from azure-storage-common~=1.4->azure-storage-blob) (2.26.0)

Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/site-packages (from cryptography->azure-storage-common~=1.4->azure-storage-blob) (1.15.0)

Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.9/site-packages (from python-dateutil->azure-storage-common~=1.4->azure-storage-blob) (1.16.0)

Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests->azure-storage-common~=1.4->azure-storage-blob) (2021.5.30)

Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests->azure-storage-common~=1.4->azure-storage-blob) (2.0.4)

Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests->azure-storage-common~=1.4->azure-storage-blob) (1.26.6)

Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests->azure-storage-common~=1.4->azure-storage-blob) (3.2)

Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.12->cryptography->azure-storage-common~=1.4->azure-storage-blob) (2.21)

azure-storage-estimator % python3.9 azure-storage-estimator.py

Traceback (most recent call last):

  File "/Users/damionwaltermeyer/git/azure-storage-estimator/azure-storage-estimator.py", line 11, in <module>

    from azure.storage.blob import (BlobServiceClient,

ImportError: cannot import name 'BlobServiceClient' from 'azure.storage.blob' (/usr/local/lib/python3.9/site-packages/azure/storage/blob/__init__.py)

Have already run configs from readme.md

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting azure-mgmt-resource==20.0.0
  Downloading azure_mgmt_resource-20.0.0-py2.py3-none-any.whl (2.3 MB)
     |████████████████████████████████| 2.3 MB 7.3 MB/s 
Collecting azure-mgmt-storage==19.0.0
  Downloading azure_mgmt_storage-19.0.0-py2.py3-none-any.whl (1.8 MB)
     |████████████████████████████████| 1.8 MB 11.1 MB/s 
Collecting azure-identity==1.6.1
  Downloading azure_identity-1.6.1-py2.py3-none-any.whl (109 kB)
     |████████████████████████████████| 109 kB 11.8 MB/s 
Collecting azure-storage-blob==12.8.1
  Downloading azure_storage_blob-12.8.1-py2.py3-none-any.whl (345 kB)
     |████████████████████████████████| 345 kB 12.1 MB/s 
Collecting azure-mgmt-subscription==1.0.0
  Downloading azure_mgmt_subscription-1.0.0-py2.py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 10.3 MB/s 
Collecting haikunator==2.1.0
  Downloading haikunator-2.1.0-py2.py3-none-any.whl (4.6 kB)
Collecting pathlib
  Downloading pathlib-1.0.1.tar.gz (49 kB)
     |████████████████████████████████| 49 kB 2.3 MB/s 
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
ERROR: Could not find a version that satisfies the requirement csv (from versions: none)
ERROR: No matching distribution found for csv

CSV already present.

python3.9
Python 3.9.7 (default, Sep  3 2021, 12:37:55) 
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
>>> exit()```

Attempted to run script after each of these to solve the given error, can't get past this storage blob one. 

```pip install azure
pip install azure.identity
pip install azure.storage
pip install azure.storage.blob
pip install azure-storage-blob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant