4

I am using Google App Engine and just updated to Lion on my mac. I am using eclipse with Pydev. Now as soon as I updated I have been unable to launch the dev server. I get the stack trace below. Anyone else with the same problem?

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
4

2 回答 2

1

我最终卸载了 GAE 和 eclipse 并重新安装。现在可以了。

从堆栈跟踪来看,PyDev 插件似乎是罪魁祸首

于 2011-07-27T16:04:30.063 回答
0

我有同样的问题,但我只是将我的库内容指向同一个根目录中的 2.7,例如 /System/Library/Frameworks/Python.framework/Versions/2.6/... /System/Library/Frameworks/Python.framework/ Versions/2.7/... 一切正常。看起来构建的二进制文件 2.6 不是为 Lion 编译的。在 Preferences-> PyDev-> Interpreter - Python-> Libraries 中找到

于 2011-07-29T07:14:53.780 回答