【发布时间】:2019-08-17 07:51:50
【问题描述】:
我无法列出来自特定容器的 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 storage相关包的版本为:
azure-mgmt-storage 2.0.0
azure-storage-blob 1.4.0
azure-storage-common 1.4.0
【问题讨论】:
标签: azure blob azure-blob-storage