1

我一直在尝试使用 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 Launcher Preferences 我放:/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

操作系统是 Lion 10.7.5

任何人都可以建议吗?

谢谢!!!

路易斯

4

0 回答 0