我刚刚在 OS X 上升级到 App Engine Python 开发服务器版本 1.7.6,升级后,当我尝试运行我的应用程序时收到以下错误:
ERROR 2013-04-02 04:05:14,268 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/rmorlok/Dropbox/ryanroot/ryan-projects/Development/docalytics/online/main.py", line 13, in <module>
from google.appengine.tools import dev_appserver
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 62, in <module>
import simplejson
ImportError: No module named simplejson
我确保通过运行安装了 simplejson
sudo pip install simplejson
成功完成。如果我在控制台上运行 Python 并导入它,我可以成功导入 simplejson,但是当通过 PyCharm 或 GoogleAppengineLaunch 运行我的应用程序时,我收到上述错误。
有谁知道发生了什么?