使用python的OSX Lion上的Google应用引擎失败
发布时间:2020-12-20 13:24:03 所属栏目:Python 来源:网络整理
导读:我正在使用Google App Engine,并在我的Mac上更新为Lion.我和Pydev一起使用 eclipse.现在,一旦我更新,我就无法启动开发服务器.我得到下面的堆栈跟踪.其他人有同样的问题吗? Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher
我正在使用Google App Engine,并在我的Mac上更新为Lion.我和Pydev一起使用
eclipse.现在,一旦我更新,我就无法启动开发服务器.我得到下面的堆栈跟踪.其他人有同样的问题吗?
Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py",line 76,in <module> run_file(__file__,globals()) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py",line 72,in run_file execfile(script_path,globals_) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_main.py",line 142,in <module> import tempfile File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py",line 34,in <module> from random import Random as _Random File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/random.py",line 45,in <module> from math import log as _log,exp as _exp,pi as _pi,e as _e,ceil as _ceil ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so,2): Symbol not found: __PyLong_AsScaledDouble Referenced from: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so 解决方法
我最终卸载了GAE和eclipse并重新安装.它现在有效.
从查看堆栈跟踪看起来PyDev插件似乎是罪魁祸首 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |