Cannot import AppendBlob from Azure Storage blob

Lucia Casucci 41 Reputation points Microsoft Employee
2021-09-06T02:26:35.787+00:00

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
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,933 questions
{count} vote

2 answers

Sort by: Most helpful
  1. shiva patpi 13,256 Reputation points Microsoft Employee
    2021-09-08T03:55:04.113+00:00

    Hello @Lucia Casucci ,
    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.

    0 comments No comments

  2. Ayoub HAMDI 1 Reputation point
    2021-10-14T14:00:42.697+00:00

    Which version of python you are using ?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.