Google Cloud Build Error "print_env_info.py: Error: Unrecognized Arguments"
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/s
Solution 1:
Problem seems to be the space in the directory name, where it tries to print temporary file. Work around steps that solved this problem for me:
1) Create some new empty directory with no spaces in the path, for example, D:\google-cloud-sdk\tmp
2) Modify D:\google-cloud-sdk\bin\appcfg.cmd
file by replacing %APPDATA%\gcloud\
with your
newly created directory path D:\google-cloud-sdk\tmp\
Solution 2:
A representative from Google Enterprise Support named Jordan gave me the revised appcfg.cmd file below. It helped get me past the error I was having. Unfortunately there's another issue now, but I think the solution below addresses the original error I posted about. Thanks Heeryu and Tatiana for your offers of help.
@echo off
rem Copyright 2013 Google Inc. All Rights Reserved.
cmd /c "python "%~dp0bootstrapping\prerun.py" --command-name=appcfg-java --component-id=gae-java --check-credentials --check-updates"
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
SETLOCAL
set TMPFILE=%APPDATA%\gcloud\tmp-env-info-%RANDOM%.txt
cmd /c "python "%~dp0bootstrapping\print_env_info.py" gae_java_path > "%TMPFILE%"
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
set /p credential_path= < "%TMPFILE%"
del "%TMPFILE%"
cmd /c ""%~dp0..\platform/appengine-java-sdk\bin\appcfg.cmd" --oauth2 --oauth2_config_file="%credential_path%" %*"
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
ENDLOCAL
Post a Comment for "Google Cloud Build Error "print_env_info.py: Error: Unrecognized Arguments""