我正在使用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
答案 0 :(得分:1)
我最终卸载了GAE和eclipse并重新安装。它现在有效。
从查看堆栈跟踪看起来PyDev插件似乎是罪魁祸首
答案 1 :(得分:0)
我有同样的问题,但我只是将我的库内容指向同一根中的2.7,例如 /System/Library/Frameworks/Python.framework/Versions/2.6 / ... /System/Library/Frameworks/Python.framework/Versions/2.7 / ... 一切都很好。看起来构建的二进制文件2.6不是为Lion编译的。 在首选项中找到 - &gt; PyDev-&GT;口译员 - Python-&gt;库