我正在使用httplib2来调用Amazon Web Services(AWS):
http = httplib2.Http(cache='.cache')
response, content = http.request('https://sdb.amazonaws.com/...')
但是,它找不到CA(我认为):
File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 1059, in request self.disable_ssl_certificate_validation)
File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 772, in __init__ context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory
我的问题:
谢谢!
最佳答案
httplib2/Python3文件夹缺少cacerts.txt,因此不会将其复制到Python/lib文件夹。我手动将文件复制到那里,一切正常。这是httplib2的已知问题。
关于windows-7 - 如何在Windows 7上使用Python 3和httplib2调用AWS?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7043756/