Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
blockblobservice
#1
Hi,

The following import of BlockBlobService
from azure.storage.blob import BlockBlobService
yields the error message: ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob'

The only working solution I found was to change to an older version of "azure-storage-blob"
pip install azure-storage-blob==2.1.0

Anyway, my questions is:

Is this error caused by a bug in latest version of "azure-storege-blob" or has 'BlockBlobService' been removed by intention?
If 'BlockBlobService' has been removed by intention: Is there any replacement?
There is multiple ways to do import, compared to above example importing BlockBlobService can be done by:
import azure.storage.blob.blockblobservice
Does it matter how BlockBlobService is imported (is both examples correct)?

Thank you
Reply


Messages In This Thread
blockblobservice - by dakke - Sep-25-2020, 09:03 AM
RE: blockblobservice - by snippsat - Sep-25-2020, 11:25 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020