1
我試圖創建一個使用Azure存儲賬號一個表創建Azure的表,但我得到了下面的錯誤。無法使用Python
Traceback (most recent call last):
File "./table.py", line 10, in <module>
table_service.create_table('tasktable')
File "/usr/local/lib/python2.7/dist-packages/azure/storage/table/tableservice.py", line 525, in create_table
_dont_fail_on_exist(ex)
File "/usr/local/lib/python2.7/dist-packages/azure/storage/_error.py", line 81, in _dont_fail_on_exist
raise error
azure.common.AzureHttpError: Not Implemented
{"odata.error":{"code":"NotImplemented","message":{"lang":"en-US","value":"The requested operation is not implemented on the specified resource.\nRequestId:xxxxxxxxxxxxxxx\nTime:2017-02-06T09:23:30.6719100Z"}}}
我的代碼是在這裏:
#!/usr/bin/env python
from azure.storage.table import TableService, TablePermissions #Entity
from azure.storage.blob import BlockBlobService
table_service = TableService(account_name='myAccount', account_key='myKey')
table_service.create_table('tasktable')
task = Entity()
task.PartitionKey = 'tasksSeattle'
task.RowKey = '2'
task.description = 'Wash the car'
task.priority = 100
table_service.insert_entity('tasktable', task)
有人幫助我。
P.S.如果需要更多信息,請告訴我,我會盡我所能提供。
請檢查您嘗試創建此表的「Kind」存儲帳戶。您嘗試在不支持表格的存儲帳戶(ZRS,Premium LRS或Blob存儲)中創建此表格的可能性很大。 –
@Gaurav Mantri我試圖在Blob存儲帳戶中創建表格。 – rsp