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

Update for azure-storage-blob==2.1.0 #70

Closed
c-stephenson opened this issue Jan 14, 2021 · 1 comment
Closed

Update for azure-storage-blob==2.1.0 #70

c-stephenson opened this issue Jan 14, 2021 · 1 comment

Comments

@c-stephenson
Copy link

Hi,
From Azure SDK v12.x BlockBlobService seems to be deprecated on more recent versions of azure-storage-blob in favour of BlobServiceClient

Error:

ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob' (/databricks/python/lib/python3.7/site-packages/azure/storage/blob/__init__.py)
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<command-337957> in <module>
----> 1 from cloudstorage.drivers.microsoft import AzureStorageDriver

/databricks/python/lib/python3.7/site-packages/cloudstorage/drivers/microsoft.py in <module>
     17 from azure.common import AzureConflictHttpError
     18 from azure.storage.blob import PublicAccess
---> 19 from azure.storage.blob import BlockBlobService
     20 from azure.storage.blob.models import Blob as AzureBlob
     21 from azure.storage.blob.models import Container as AzureContainer

ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob' (/databricks/python/lib/python3.7/site-packages/azure/storage/blob/__init__.py)

Environment:

azure-storage-blob=12.6.0
cloudstorage=0.10.1

I've been ok to use the 2.x SDK up until now but I'm now having dependency issues in my environment using MLFlow which uses 12.x

Are you planning on bringing this up to date at any point?

Requesting hopefully :)

Chris

@c-stephenson
Copy link
Author

Accidental duplication of issue #71

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