【发布时间】:2014-11-24 21:26:04
【问题描述】:
尝试在 osX Maverics 10.9.5 上使用 Python2.7.8 从 GAE SDK 1.95 导入测试平台 我收到了 InvalidCertificateException 错误。
from google.appengine.ext import testbed
File "/usr/local/google_appengine/google/appengine/ext/testbed/__init__.py", line 120, in <module>
from google.appengine.api import urlfetch_stub
File "/usr/local/google_appengine/google/appengine/api/urlfetch_stub.py", line 34, in <module>
_fancy_urllib_InvalidCertException = fancy_urllib.InvalidCertificateException
AttributeError: 'module' object has no attribute 'InvalidCertificateException'
我查看了 fancy_url 模块和 InvalidCertificateException 类,所以我不明白为什么它没有导入。
显然其他人也有同样的错误,所以我尝试通过删除: urlfetch_cacerts.txt 和 cacerts.txt 来纠正它:
GoogleAppEngineLauncher/Contents/Resources/GoogleAppEngineDefault.bundle/Contents/Resources/google_appengine/lib/cacerts/
【问题讨论】:
标签: google-app-engine python-2.7