question

LuciaCasucci-9483 avatar image
0 Votes"
LuciaCasucci-9483 asked AyoubHAMDI-2598 answered

Cannot import AppendBlob from Azure Storage blob

I am trying to use AppendBlob

I installed the libraries azure-storage-blob and I was doing other scripts calling BlobClient and Container Client with no issue
However when I import AppendBlob, I am always getting an error "cannot import name 'AppendBlobService' from 'azure.storage.blob' "

any idea on how to make it work?

Thanks in advance - see screenshot below

129451-image.png


azure-blob-storage
image.png (335.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered Sumarigo-MSFT commented

Hello @LuciaCasucci-9483 ,
I was able to repro the same issue locally but after running pip install azure-storage --upgrade error is gone.
Can you kindly try out from your end ?

I just tried only sample piece of Import code for which same error was thrown , but after --upgrade it went through successfully.

from azure.storage import blob
from azure.storage.blob import AppendBlobService

Regards,
Shiva.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AyoubHAMDI-2598 avatar image
0 Votes"
AyoubHAMDI-2598 answered

Which version of python you are using ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.