2011-02-26 86 views
1

下面是我使用的命令:無法下載GAE的源代碼

appcfg.py download_app -A --application= appid 

輸出:

/usr/local/bin/appcfg.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead 
    os.path.join(DIR_PATH, 'lib', 'django_0_96'), 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_login.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead 
    import md5 
Host: appengine.google.com 
Fetching file list... 
Email: [email] 
Password for [email]: 
Error 400: --- begin server output --- 

Client Error (400) 
The request is invalid for an unspecified reason. 
--- end server output --- 

我的電子郵件地址/密碼是正確的。任何人都可以幫我翻譯這個錯誤嗎?在文檔

+0

如果有'--application ='和'appid'之間的空間? – bdonlan 2011-02-26 20:05:40

+0

我收到另一個錯誤,當沒有:appcfg.py:錯誤:「download_app」期望一個非選項參數,找到0. – 2011-02-26 20:06:50

+2

您不能下載添加download_app功能之前上傳的應用程序(1.4。 1?)。這可能是問題嗎? – Calvin 2011-02-26 20:27:07

回答

6

來看,該命令的格式是:

appcfg.py download_app -A <application-id> -V <application-version> <output-dir> 

貌似有文件中的錯誤,因爲當我嘗試吧,<output-dir>參數是需要

所以你的電話應該是這樣的下載到當前目錄(.

appcfg.py download_app -A appid . 
1

我有這個問題我自己。參數的順序有所不同。 appid和版本(可選)需要在「download_app」之前出現。

以下爲我工作:

appcfg.py -A appid download_app ../../path/to/directory/ 
0

下面的命令爲我工作:

appcfg.py download_app -A s~xxx -V 1.374941992621083247 . 

我的網站是http://xxx.appspot.com但不是-A xxx,我用-A s~xxx

s~xxxversion_id 1.374941992621083247可以從網址在App Engine控制檯採取這樣的:

https://appengine.google.com/logs?&app_id=s~xxx&version_id=1.374941992621083247