使用Python SDK for Azure时出现HTTP标头错误

使用Python SDK for Azure时出现HTTP标头错误,python,linux,azure,Python,Linux,Azure,我开始使用Microsoft Azure SDK for Python(),但我遇到了一些问题 我使用的是Scientific Linux,我已经安装了Python 3.4的SDK,接下来的步骤如下: (而不是SDK目录) python setup.py安装 之后,我创建了一个简单的脚本来测试连接: from azure.storage import BlobService blob_service = BlobService(account_name='thename', account_k

我开始使用Microsoft Azure SDK for Python(),但我遇到了一些问题

我使用的是Scientific Linux,我已经安装了Python 3.4的SDK,接下来的步骤如下:

(而不是SDK目录) python setup.py安装

之后,我创建了一个简单的脚本来测试连接:

from azure.storage import BlobService

blob_service = BlobService(account_name='thename', account_key='Mxxxxxxx3w==' )

blob_service.create_container('testcontainer')

for i in blob_service.list_containers():
        print(i.name)
遵循本文件:

但不起作用,我总是收到相同的错误:

python3测试.py


提前感谢并致以最良好的问候。

我也有同样的问题。我相信这是一个库错误,但作者还没有发言权

看起来这个响应说明了版本,但实际上它给出的标题是错误的。其值应为“2014-02-14”,您可以执行中所示的修复

希望这将是固定的,没有人会读这个答案。干杯

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/storageclient.py", line 143, in _perform_request
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/storageclient.py", line 132, in _perform_request_worker
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/http/httpclient.py", line 247, in perform_request
azure.http.HTTPError: The value for one of the HTTP headers is not in the correct format.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 21, in <module>
    blob_service.create_container('testcontainer')
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/blobservice.py", line 192, in create_container
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/__init__.py", line 905, in _dont_fail_on_exist
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/blobservice.py", line 189, in create_container
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/storageclient.py", line 150, in _perform_request
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/storage/__init__.py", line 889, in _storage_error_handler
  File "/usr/local/lib/python3.4/site-packages/azure-0.9.0-py3.4.egg/azure/__init__.py", line 929, in _general_error_handler
azure.WindowsAzureError: Unknown error (The value for one of the HTTP headers is not in the correct format.)
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format.
RequestId:b37c5584-0001-002b-24b8-c2c245000000
Time:2014-11-19T14:54:38.9378626Z</Message><HeaderName>x-ms-version</HeaderName><HeaderValue>2012-02-12</HeaderValue></Error>