I'm trying to get a Google Cloud development environment up and running on my Windows (64 bit) computer.
I followed instructions for Java at https://console.developers.google.com/start/appengine on my Windows computer but on step 6 ("Create Your Project and Deploy") I got this error message:
D:\google-app-engine\appengine-try-java>appcfg.cmd -A midyear-tempo-554 update t arget\appengine-try-java usage: print_env_info.py [-h] item print_env_info.py: error: unrecognized arguments: Osofsky\AppData\Roaming\gcloud \tmp-env-info-10521.txt
I was able to complete all the other steps. The only anomaly was in Step 4 ("Run Your App Locally") where I got the following error when I tried to run install.bat:
To use the Google Cloud SDK, you must have Python installed and on your PATH. As an alternative, you may also set the CLOUDSDK_PYTHON environment variable to the location of your Python executable.
I successfully solved this problem by adding the following line to install.bat:
set CLOUDSDK_PYTHON=C:\Python27\python.exe
I wasn't sure if this caused "print_env_info.py: error: unrecognized arguments"
, but it seems related because they both have to do with environment variables. So I added CLOUDSDK_PYTHON=C:\Python27\python.exe
to my user-level environment variables. I then started a new command prompt, confirmed via a "set"
command that CLOUDSDK_PYTHON=C:\Python27\python.exe
had registered, and tried again but I still got this error:
D:\google-app-engine\appengine-try-java>appcfg.cmd -A midyear-tempo-554 update t arget\appengine-try-java usage: print_env_info.py [-h] item print_env_info.py: error: unrecognized arguments: Osofsky\AppData\Roaming\gcloud \tmp-env-info-8445.txt
Any ideas?