我在列出特定容器中的blob时遇到了麻烦
我使用Python中的官方代码列出:
from azure.storage.blob import BlockBlobService
account_name = 'xxxx'
account_key = 'xxxx'
container_name = 'yyyyyy'
block_blob_service = BlockBlobService(account_name=account_name,
account_key=account_key)
print("\nList blobs in the container")
generator = block_blob_service.list_blobs(container_name)
for blob in generator:
print("\t Blob name: " + blob.name)
我收到了错误:
raise AzureException(ex.args[0])
AzureException: can only concatenate str (not "tuple") to str
安装的azure存储相关软件包的版本是:
azure-mgmt-storage 2.0.0
azure-storage-blob 1.4.0
azure-storage-common 1.4.0