Google app engine GAE SDK 1.9.5和InvalidCertificateException

Google app engine GAE SDK 1.9.5和InvalidCertificateException,google-app-engine,python-2.7,Google App Engine,Python 2.7,试图在osX Maverics 10.9.5上从GAE SDK 1.95和Python2.7.8导入测试床 我得到了一个无效证书异常错误 from google.appengine.ext import testbed File "/usr/local/google_appengine/google/appengine/ext/testbed/__init__.py", line 120, in <module> from google.appengin

试图在osX Maverics 10.9.5上从GAE SDK 1.95和Python2.7.8导入测试床 我得到了一个无效证书异常错误

    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'   

显然,GAE安装程序创建了一个嵌套目录,这是通过复制以下目录中的内容修复的:

cd /usr/local/google_appengine/lib
cp fancy_urllib/fancy_urllib/__init__.py fancy_urllib/__init__.py 
这就是模块结构不正确的原因,看起来这2个init.py文件是重复的:

/usr/local/google_appengine/lib/fancy_urllib/__init__.py   # this file is empty
/usr/local/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py # this file contains the functions.

修复了错误

谢谢!它在GAE 1.9.18中解决了我的问题,而不是复制,我认为更好的选择是创建一个链接,因此假设您在
cd/usr/local/google\u appengine/lib
,然后执行
ln-f-r-s./fancy\u urllib/fancy\u init\u.py-t fancy\u urllib
/usr/local/google_appengine/lib/fancy_urllib/__init__.py   # this file is empty
/usr/local/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py # this file contains the functions.