Hi I am running into this problem with OpenSSL import and I get the following error:
*** Running dev_appserver with the following flags:
--skip_sdk_update_check=yes --port=8080 --admin_port=8000
Python command: /Library/Frameworks/Python.framework/Versions/2.7/bin/python
INFO 2013-06-23 03:13:09,137 devappserver2.py:528] Skipping SDK update check.
INFO 2013-06-23 03:13:09,202 api_server.py:138] Starting API server at: http://localhost:63275
INFO 2013-06-23 03:13:09,208 dispatcher.py:164] Starting server "default" running at: http://localhost:8080
INFO 2013-06-23 03:13:09,218 admin_server.py:117] Starting admin server at: http://localhost:8000
ERROR 2013-06-23 03:13:25,911 wsgi.py:219]
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 196, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 255, in _LoadHandler
handler = __import__(path[0])
File "/Users/vivsriva/Vivek/SavvyBud/dev/DeviceNotificationService/src/manager.py", line 9, in <module>
from APNSHandler import APNSHandler
File "/Users/vivsriva/Vivek/SavvyBud/dev/DeviceNotificationService/src/APNSHandler.py", line 6, in <module>
from OpenSSL import SSL
ImportError: No module named OpenSSL
INFO 2013-06-23 03:13:25,921 server.py:593] default: "GET /manager/apps HTTP/1.1" 500 -
INFO 2013-06-23 03:13:26,015 server.py:593] default: "GET /favicon.ico HTTP/1.1" 304 -
The OpenSSL is installed and I have added the "_ssl" key to the dictionary _WHITE_LIST_C_MODULES in /Applications/GoogleAppEngineLauncher.app//Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py
to fix the following error:
ImportError: no module named "_ssl"
When I import OpenSSL in the python shell, I don't get any error.
In my app.yaml I have the following library added:
libraries:
- name: webapp2
version: "2.5.2"
- name: ssl
version: latest
Any ideas, that can help me?