Google App Engine appcfg.py shows the help message for every command

后端 未结 2 2190
终归单人心
终归单人心 2021-02-09 10:24

I have GWT app, which is deployed on GAE (Java). I\'m trying to download data from App Engine datastore using appcfg.py . I did all the setup according to http://ikaisays.com/20

相关标签:
2条回答
  • 2021-02-09 10:42

    The right way is to change the environment variables on Windows 7:

    1. Go to System Properties
    2. Go to Advance System Settings
    3. Click on Environment Variables
    4. Append to Path variable the values C:\Python27\
    5. Click Ok and restart your computer. (Yes, it is needed.)

    Another way is to:

    1. Open command Prompt
    2. Locate your python.exe file. For example:

      C:\Python27>_

    3. Then, run a python command that looks like this.

      python <appcfg_directory> download_app -A <your_app_id> -V <your_app_version> <output-dir>

    Where <appcfg_directory> is equal to C:\Program Files\Google\google_appengine\appcfg.py. (Depending on your file location)

    Don't forget to put quotes before and after <appcfg_directory>

    0 讨论(0)
  • 2021-02-09 10:44

    The following fix worked for me. It looks like appcfg.py doesn't like PYTHON27 and ALWAYS returns the help menu. I fixed it by executing it with PYTHON25 and hard coded all my file locations:

    C:\Python25-archive\python "C:\Program Files (x86)\Google\google_appengine\appcfg.py" rollback C:\scripts\myapp
    
    0 讨论(0)
提交回复
热议问题