python – dev_appserver.py给了我一个错误

在OS X Lion上将GAE升级到1.7.6后,我遇到了一个错误,当我运行dev_appserver.py时无法解决.它在以前的版本中运行良好.最初错误说我需要使用pip安装PyObjC和PIL.现在,它说无法打开文件’/usr/local/bin/_
python_runtime.py’:[Errno 2]没有这样的文件或目录.这是完整的错误:

INFO     2013-04-01 23:01:15,091 sdk_update_checker.py:244] Checking for updates to the SDK.
INFO     2013-04-01 23:01:15,660 sdk_update_checker.py:272] The SDK is up to date.
INFO     2013-04-01 23:01:15,705 api_server.py:152] Starting API server at: http://localhost:50096
INFO     2013-04-01 23:01:15,721 dispatcher.py:98] Starting server "default" running at: http://localhost:8080
INFO     2013-04-01 23:01:15,759 admin_server.py:117] Starting admin server at: http://localhost:8000
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/usr/local/bin/_python_runtime.py': [Errno 2] No such file or directory
ERROR    2013-04-01 23:01:15,785 http_runtime.py:221] unexpected port response from runtime ['']; exiting the development server
INFO     2013-04-01 23:01:16,775 api_server.py:517] Applying all pending transactions and saving the datastore
INFO     2013-04-01 23:01:16,775 api_server.py:520] Saving search indexes
Exception in thread Thread-1 (most likely raised during interpreter shutdown)

我发现了一篇关于这个here的类似帖子,但是它出现在Windows 7机器上并没有出现他找到了解决方案(或许他确实没有跟进).有任何想法吗?

编辑:它适用于GoogleAppEngineLauncher GUI,但不适用于命令行.不知道为什么.

最佳答案 从我对Fat Lotus的回应来看,这对我有用:

我再次更新了GAE Launcher,重新创建了符号链接,现在它工作正常. /usr/local/bin/_python_runtime.py链接到的当前符号链接是/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-de fault.bundle / Contents / Resources / google_appengine / _python_runtime.py

点赞