scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

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

Open c-stephenson opened 3 years ago

c-stephenson commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Thank you Scott - very much appreciated!C. On Thursday, 14 January 2021, 11:39:35 pm GMT, Scott Werner notifications@github.com wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.