Pregunta

Estoy usando Google App Engine y solo actualizo a Lion en mi Mac. Estoy usando Eclipse con Pydev. Ahora, tan pronto como actualicé, no he podido iniciar el servidor Dev. Obtengo el rastro de la pila a continuación. ¿Alguien más con el mismo problema?

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
¿Fue útil?

Solución

Terminé desinstalando Gae y Eclipse y reinstalando. Ahora funciona.

Desde mirar el rastro de la pila, parece que el complemento Pydev fue el culpable

Otros consejos

Tuve el mismo problema, pero acabo de señalar las cosas de mi biblioteca a 2.7 en la misma raíz, eg /system/library/frameworks/python.framework/versions/2.6/... /system/library/frameworks/python.framework/ Versiones/2.7/... y todo funcionó bien nuevamente. Parece que los binarios 2.6 se construyeron no se compilan para Lion. Encontrado en Preferencias-> Pydev-> Interpreter-Python-> Bibliotecas

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top