GAE SDK 1.9.5 and InvalidCertificateException

Trying to import a test file from the GAE SDK 1.95 with Python2.7.8 on osX Maverics 10.9.5 and I get an InvalidCertificateException error.

    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'   

I looked at the fancy_url module and the InvalidCertificateException class, so I don’t understand why it is not importing.

Others apparently had the same error, so I'm trying to fix it by deleting: urlfetch_cacerts.txt and cacerts.txt from:

GoogleAppEngineLauncher/Contents/Resources/GoogleAppEngineDefault.bundle/Content‌​s/Resources/google_appengine/lib/cacerts/
+4
source share
1 answer

Apparently, the GAE installer creates a subdirectory, this has been fixed by copying the contents to:

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.

+11

All Articles