gpt4 book ai didi

python - 谷歌应用引擎在 OSX Lion 上使用 python 失败

转载 作者:太空宇宙 更新时间:2023-11-03 11:56:44 24 4
gpt4 key购买 nike

我正在使用 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 插件似乎是罪魁祸首

关于python - 谷歌应用引擎在 OSX Lion 上使用 python 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6822624/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com