0

每次我dev_appserver.py --php_executable_path /opt/local/bin/php-cgi54 phpintern/在 OS X 下运行时,都会返回此错误:

INFO     2013-05-24 01:59:15,523 sdk_update_checker.py:244] Checking for updates to the SDK.
INFO     2013-05-24 01:59:15,712 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found
WARNING  2013-05-24 01:59:15,719 api_server.py:329] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO     2013-05-24 01:59:15,723 api_server.py:153] Starting API server at: http://localhost:64606
INFO     2013-05-24 01:59:15,727 dispatcher.py:164] Starting server "default" running at: http://localhost:8080
INFO     2013-05-24 01:59:15,734 admin_server.py:117] Starting admin server at: http://localhost:8000
ERROR:root:php failure (255) with:
X-Powered-By: PHP/5.4.15
Content-type: text/html

<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: require_once(google/appengine/runtime/ApiProxy.php): failed to open stream: No such file or directory in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line <i>21</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>245760</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>246736</td><td bgcolor='#eeeeec'>{closure:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php:2-40}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>41</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0012</td><td bgcolor='#eeeeec' align='right'>257864</td><td bgcolor='#eeeeec'>{closure:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php:20-32}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>38</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: require_once(): Failed opening required 'google/appengine/runtime/ApiProxy.php' (include_path='/Users/lazyGoose0412/Job_work/google_appengine/helloworld:/usr/local/bin/php/sdk') in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line <i>21</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>245760</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>246736</td><td bgcolor='#eeeeec'>{closure:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php:2-40}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>41</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0012</td><td bgcolor='#eeeeec' align='right'>257864</td><td bgcolor='#eeeeec'>{closure:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php:20-32}(  )</td><td title='/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php' bgcolor='#eeeeec'>../setup.php<b>:</b>38</td></tr>
</table></font>

之后,appserver 一直绑定我的 8080 端口。我需要终止绑定端口并重新启动服务器。

4

2 回答 2

0

You want

dev_appserver.py --php_executable_path=/opt/local/bin/php-cgi54 phpintern/
于 2013-05-24T00:29:27.543 回答
0

我从 hakre 那里得到了正确的答案:)

问题是我也有一个python 版本 Google-App-engine。为了解决这个问题,我需要将“dev_appserver”指定给PHP-GAE-SDK

于 2013-05-26T12:21:30.053 回答