2012-01-29 82 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