question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

azure-storage-blob 12.0.0

See original GitHub issue

Which service(blob, file, queue) does this issue concern?

Blob

Which version of the SDK was used? Please provide the output of pip freeze.

azure-storage-blob 12.0.0

What problem was encountered?

cannot import name ‘BlockBlobService’ from ‘azure.storage.blob’

Have you found a mitigation/solution?

Revert back to v2.1.0

I just want to add that in pypi the documentation mentions to use from azure.storage.blob import BlobServiceClient. However the documentation found in https://azure-storage.readthedocs.io/index.html still mentions using BlockBlobService instead. So can I clarify which package are we expected to import going forward?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
jialutucommented, Nov 4, 2019

I have to say though this is quite disappointing in that there has been no deprecation warnings for the BlockBlobService, where a new version has been released getting rid BlockBlobService entirely, which we rely on for our production services. If this is the case going forward for Azure python libraries, I am starting to question our long term strategy of using Azure.

5reactions
akxcommented, Nov 4, 2019

I have to say though this is quite disappointing in that there has been no deprecation warnings for the BlockBlobService, where a new version has been released getting rid BlockBlobService entirely, which we rely on for our production services.

This was a very major version bump (azure-storage-blob==2.1.0 -> azure-storage-blob==12.0.0) – I don’t know if Azure SDKs follow Semver, but if they do, that alone should be a big ol’ warning sign that APIs will have changed.

In my opinion, you should not be running production services without having pinned/locked your dependencies in a way that ensures you can test that exactly the versions of all dependencies you install have a fighting chance to work in your production environment, too. My tool of choice for pinning Python dependencies is pip-tools.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure.Storage.Blobs 12.0.0 - NuGet
This client library enables working with the Microsoft Azure Storage Blob service for storing binary and text data.
Read more >
azure-storage-blob : 12.0.0 - Maven Central Repository Search
Official search by the maintainers of Maven Central Repository.
Read more >
Azure Storage Blob client library for Java - javadoc.io
Azure Blob Storage is Microsoft's object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data.
Read more >
@azure/storage-blob - npm
Blob storage is designed for: Serving images or documents directly to a browser. Storing files for distributed access. Streaming video and audio ...
Read more >
azure-storage-blob 12.0.0b4 - PyPI
Install the package. Install the Azure Storage Blobs client library for Python with pip: pip install azure-storage-blob --pre. Prerequisites: You must ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found