我一直在尝试使用GOOGLE APP ENGINE LAUNCHER(PHP环境)测试简单的HELLOWORLD APP,但是当我点击“运行”按钮时,会显示一条消息“Python意外退出”......
日志控制台显示:
*** Running dev_appserver with the following flags:
--skip_sdk_update_check=yes --port=8080 --admin_port=8000
Python command: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
INFO 2013-10-01 13:10:06,504 devappserver2.py:660] Skipping SDK update check.
WARNING 2013-10-01 13:10:06,551 api_server.py:327] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-10-01 13:10:06,565 api_server.py:138] Starting API server at: http://localhost:49313
INFO 2013-10-01 13:10:06,579 dispatcher.py:168] Starting module "default" running at: http://localhost:8080
INFO 2013-10-01 13:10:06,593 admin_server.py:117] Starting admin server at: http://localhost:8000
ERROR 2013-10-01 13:10:06,923 php_runtime.py:223] The PHP runtime is not available
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 219, in new_instance
self._check_environment(php_executable_path)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 171, in _check_environment
version_stdout))
_PHPEnvironmentError: "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi -v" returned an error [-11]
我想这个问题与最后一个声明有关... _PHPEnvironmentError:“/ Applications / googleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi -v”返回错误[-11] ...当Python到达这一行时崩溃......
我尝试从Macports和Python站点安装Python,所以我必须在我的计算机上安装多个。
在我的Google App Engine启动器首选项中,我放了: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
操作系统是Lion 10.7.5
有人可以建议吗?
感谢!!!
路易斯