New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcloud has stopped working after 7.3.0 update #18529
Comments
facing the same issue, have you found any solutions yet? |
Same issue |
There is no any issue with PowerShell Desktop. |
#13428 (comment)
|
Another workaround is to start "cmd" inside powershell, login and then exit the "cmd" shell. |
FWIW, "PowerShell Desktop" is a very old version of PowerShell. Run the command "$PSVersionTable" on mine and it shows "PSVersion" to be 5.1.x |
If someone can confirm that setting |
Works for me. |
Re-open this issue. Running gcloud is not running gcloud.exe, but resolved to the gcloud.ps1 file under the installation folder. The gcloud.ps1 file eventually calls python.exe with a generated argument array. For the gcloud -h, the generated argument array is essentially the following array:
The leading empty string is the problem that cause it fail in the new Standard/Windows mode. With legacy mode, the leading empty string is ignored when passing to python.exe, but with the new standard/windows mode, the empty string is passed in as well, which causes
|
This issue has been marked as external and has not had any activity for 1 day. It has been be closed for housekeeping purposes. |
For anybody who runs into this issue and is looking for a quick workaround. Open up $run_args_array += $cloudsdk_python_args.split(' ') with $run_args_array += $cloudsdk_python_args.split(' ', [StringSplitOptions]::RemoveEmptyEntries) |
may not be related to the real problem of this error but i was getting the exact same error and |
I can confirm that this has now been fixed with Google Cloud CLI version 413.0.0 |
Prerequisites
Steps to reproduce
I installed 7.3.0 with msi and after that kept getting the error like when executing
gcloud
commandsTried to reinstall gcloud (with and without bundled python) and powershell a few times without much luck.
Works fine after downgrade to PS 7.2.5
Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: