Google App Engine appcfg.py shows a help message for each command

I have a GWT application that is deployed to GAE (Java). I am trying to load data from an App Engine data store using appcfg.py. I made all the settings in accordance with http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ .

The GAE Python SDK version is 1.4.3
Python version - 2.5.4

appcfg.py is in my PATH. When I run appcfg.py on the command line, I get the message "help". But the problem is that no matter which command I use, it always returns a help message. I could not run any command using appcfg.py.

It gives no specific error message no matter what arguments I give. My application uses Google Account Authentication, but I don’t think it even got to the authentication point.

I can use Java appcfg (for other actions like rollback) without any problems. But the Python version just refuses to work for all teams.

I tried different formats, for example:

appcfg.py create_bulkloader_config --url=http://myappid.appspot.com/remote_api --application=myappid --filename=config.yml appcfg.py create_bulkloader_config --filename=bulkloader.yaml --url=http://myappid.appspot.com/remote_api appcfg.py --filename=bulkloader.yaml --url=http://myappid.appspot.com/remote_api create_bulkloader_config 

All give me the same message:

Usage: appcfg.py [options]

The action must be one of:
create_bulkloader_config: create bulkloader.yaml from a running application.
cron_info: display cron operation information.
download_app: download the previously downloaded application.
download_data: download objects from the data store.
help: Print help for a specific action.
request_logs: write request logs to the general Apache log format.
Rollback: rollback updates in progress.
set_default_version: install the standard (maintenance) version.
update: create or update the application version.
update_cron: update application cron definitions.
update_dos: update dos application definitions.
update_indexes: update application indices.
update_queues: Update application task queue definitions.
upload_data: Upload data records to the data warehouse.
vacuum_indexes: remove unused indexes from the application.
Use "help <action> " for a detailed description.

Options:
-h, --help Show help message and exit.
-q, --quiet Print errors only. A.
-v, --verbose Logs for the version information level.
--noisy Print all magazines.
-s SERVER, --server = SERVER
...
...
...

Even if I try "appcfg.py help create_bulkloader_config" for a detailed description, it still shows me the same standard help.

I also tried on the local development server using the url http://127.0.0.1:8888/remote_api , but it still gives the same help message.

I absolutely do not know what the problem is. I am new to GWT and GAE and any help would be greatly appreciated.

Thanks.

+7
source share
2 answers

The following fix worked for me. appcfg.py doesn't seem to like PYTHON27 , and ALWAYS returns a help menu. I fixed it by running it with PYTHON25 and hard-coded all the places in my file:

 C:\Python25-archive\python "C:\Program Files (x86)\Google\google_appengine\appcfg.py" rollback C:\scripts\myapp 
+1
source

The correct way is to change the environment variables in Windows 7:

  • Go to System Properties
  • Go to Preliminary System Settings
  • Click Environment Variables
  • Add the value C:\Python27\ to the variable Path.
  • Click OK and restart your computer. (Yes, it is necessary.)

Another way:

  • Open command
  • Find your python.exe file. For example:

    C:\Python27>_

  • Then run the python command , which 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 the location of your file)

Remember to put quotes before and after <appcfg_directory>

0
source

All Articles