Google App Engine – Python SDK (windows) – Download App Syntax Error (Resolved)

Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\request_handler.py", line 214, in handle_interactive_request compiled_code = compile(code, '<string>', 'exec') File "<string>", line 1 appcfg.py download_app -A MYAPPNAME -V MYAPPVERSION DOWNLOADDIRECTORY ^ SyntaxError: invalid syntax

Where MYAPPNAME is the name of your application, MYAPPVERSION is the version running, login to your app online and select version under main and DOWNLOADDIRECTORY is where you will download it to on your windows computer. Make sure it is a empty directory, maybe C:\MyApp\Version\.

Google App Engine SDK instructions to download your app, “You can download an application’s source code by running appcfg.py with the download_app action in the Python SDK command-line tool:”

Don’t run it from the interactive console in google apps, run it from Windows Command Prompt.

Download your GAE App

If you skipped the intro to running python SDK like I did and then read on, it gets vague because it is a general discussion on Python SDK (not specific to Linux, Windows, etc).

Run the command in windows command-prompt, enter email address, password and bam, your in biz.

Hope this helps.