在 OS X Lion 上将 GAE 升级到 1.7.6 后,运行 dev_appserver.py 时出现无法解决的错误。它在以前的版本中运行良好。最初错误说我需要使用 pip 安装 PyObjC 和 PIL。现在,它说can't open file '/usr/local/bin/_python_runtime.py': [Errno 2] No such file or directory
。这是完整的错误:
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)
我在这里找到了关于此的类似帖子,但它是在 Windows 7 机器上,并且似乎他没有找到解决方案(或者他可能找到了但没有跟进)。有任何想法吗?
编辑:它适用于 GoogleAppEngineLauncher GUI,但不适用于命令行。不知道为什么。