2012-01-29 84 views
0

我在本地设置remote_api,这次它不工作。我只是按照remote_api的文档页面上的说明,这里的Python:http://code.google.com/appengine/articles/remote_api.html找不到Google App Engine的remote_api脚本

这基本上意味着,我从项目的应用程序根目录下面的命令(包含app.yaml中)

>> python $GAE_SDK_ROOT/remote_api_shell.py -s your_app_id.appspot.com 
>> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/remote_api_shell.py': [Errno 2] No such file or directory 

your_app_id参数正在被更改为谷歌上的实际应用程序ID。

这可能是一件简单的事情,但不知道它是什么。

回答

1

您需要将$GAE_SDK_ROOT替换为GAE SDK的实际根目录。所以,大概是:

python ~/google_appengine/remote_api_shell.py -s ... 
+0

谢谢,这不是你指定的路径。 Mac的路径是什么?应用程序引擎启动程序位于以下位置:/Applications/GoogleAppEngineLauncher.app,但不确定SDK中包含的内容的位置 – 2012-01-29 16:13:58

+1

这里是:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents /资源/ google_appengine / – 2012-01-29 16:21:37