2011-07-25 74 views
4

我正在使用Google App Engine,並在我的Mac上更新爲Lion。我在Pydev上使用eclipse。現在,只要我更新,我一直無法啓動開發服務器。我在下面獲得堆棧跟蹤。任何其他人都有同樣的問題?Google應用程序引擎在OSX Lion上使用python失敗

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

你嘗試更新到谷歌應用程序引擎的新版本,有嗎? – cwoebker

+0

GAE會自動提示您升級,所以這可能不是問題。 – agf

回答

1

我最終卸載GAE和eclipse並重新安裝。它現在有效。

通過觀察堆棧跟蹤它好像PyDev的插件是罪魁禍首

+1

爲什麼不把它標記爲接受的答案? – Kev

0

我有同樣的問題,但我只是指出我的圖書館東西2.7同根生,例如 /System/Library/Frameworks/Python.framework/Versions/2.6/... /System/Library/Frameworks/Python.framework/Versions/2.7/... 和一切正常工作再次。看起來2.6版的二進制文件不是爲Lion編譯的。 發現在首選項 - > PyDev->解釋器 - Python->庫

相關問題