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

Azure azure-storage-blob & SDK v12.x Compatibility #71

Open
c-stephenson opened this issue Jan 14, 2021 · 2 comments
Open

Azure azure-storage-blob & SDK v12.x Compatibility #71

c-stephenson opened this issue Jan 14, 2021 · 2 comments
Labels

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

@scottwernervt
Copy link
Owner

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

Yes as I been slacking hard on maintaining this project. I will looking into this weekend and also release a new version with the latest feature PRs.

@c-stephenson
Copy link
Author

c-stephenson commented Jan 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants