Apple stock python on 10.5 and 10.6 includes an ssl module (unclear about earlier versions):
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> ssl.__file__ '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.pyc'
(out of 10.5.8)
In fact, you can get this error message from appengine_rpc.py even if you have ssl - you need to make sure your GAE download has:
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/cacerts/cacerts.txt
If you have both of these things, try doing:
import google.appengine.tools.https_wrapper
Which should work with a stock of Apple python, but if the error messages are not more informative. If you have multiple pythons installed, so one of them twists GAE, be sure to use the Python Path preference in GAE to point to Apple Python.
source share