Can't Repro
Status Update
Comments
cu...@google.com <cu...@google.com> #2
using the below does resolve the issue and allow the app to be deployed.
gcloud config set app/use_gsutil true
gcloud config set app/use_gsutil true
mm...@gmail.com <mm...@gmail.com> #3
Thanks for the update! We think we have a handle on this issue, and there should be a patch in the Cloud SDK 106 release due out next week that will work with the 'use_gsutil false' setting (which will eventually become the new default).
m....@gmail.com <m....@gmail.com> #4
I have the same problem.
https://issuetracker.google.com/issues/146458535
== gcloud.cmd L.104
!CLOUDSDK_PYTHON! -c "import sys; print(sys.version)" >nul 2>&1
==
This line fails because the command part of the line is not quoted.
I think that Probably program name have to be quoted.
==
"!CLOUDSDK_PYTHON!" -c "import sys; print(sys.version)" >nul 2>&1
==
== gcloud.cmd L.104
!CLOUDSDK_PYTHON! -c "import sys; print(sys.version)" >nul 2>&1
==
This line fails because the command part of the line is not quoted.
I think that Probably program name have to be quoted.
==
"!CLOUDSDK_PYTHON!" -c "import sys; print(sys.version)" >nul 2>&1
==
sh...@google.com <sh...@google.com> #5
Hi, sorry for the inconvenience,
Can I have the output for `where python` and `where python3` from the system?
Can I have the output for `where python` and `where python3` from the system?
ma...@gmail.com <ma...@gmail.com> #6
I'm having the same issue for Windows 10. I previously had cloud SDK installed and working with Python3. After the last SDK and windows updates though, it no longer finds the path. When I started SDK and ran any "gcloud" or "gsutil" command, I got the "python not on path" message. I've tried the below:
1) Creating a CLOUDSDK_PYTHON environment variable.
2) Changing my Path variable to various locations and also adding a PYTHONPATH variable.
3) Changing the SDK install and bat files.
Finally I just uninstalled everything and now I can't re-install SDK as it's giving me the same python not on path message. Screenshot attached. My python paths are at the top of my Path environment variable (screenshot attached). I'm out of ideas. The documentation is very confusing since 3/4 of it says that SDK ONLY works with python 2.7, and then the other 1/4 just doesn't work for me. The only thing I can think of is that technically I don't have a python.exe file in my python locations. Windows uses python launcher in which case the exe file is "C:\Windows\py.exe"
Any help is appreciated.
1) Creating a CLOUDSDK_PYTHON environment variable.
2) Changing my Path variable to various locations and also adding a PYTHONPATH variable.
3) Changing the SDK install and bat files.
Finally I just uninstalled everything and now I can't re-install SDK as it's giving me the same python not on path message. Screenshot attached. My python paths are at the top of my Path environment variable (screenshot attached). I'm out of ideas. The documentation is very confusing since 3/4 of it says that SDK ONLY works with python 2.7, and then the other 1/4 just doesn't work for me. The only thing I can think of is that technically I don't have a python.exe file in my python locations. Windows uses python launcher in which case the exe file is "C:\Windows\py.exe"
Any help is appreciated.
ma...@gmail.com <ma...@gmail.com> #7
You can ignore my post. I fixed the problem by doing the following:
1) Uninstalled python37 and windows python launcher.
2) Re-installed python37 and re-added to the environment Path variable (This re-instated my missing python.exe file also; the py.exe file is also in it's Windows location for python launcher)
3) Deleted all previous SDK folders/files. (There was one still hanging out there from my previous copy)
4) Re-downloaded SDK and UNCHECKED the python bundle checkbox. It gave me a warning message that python was not installed, but after it completed, everything works as expected.
1) Uninstalled python37 and windows python launcher.
2) Re-installed python37 and re-added to the environment Path variable (This re-instated my missing python.exe file also; the py.exe file is also in it's Windows location for python launcher)
3) Deleted all previous SDK folders/files. (There was one still hanging out there from my previous copy)
4) Re-downloaded SDK and UNCHECKED the python bundle checkbox. It gave me a warning message that python was not installed, but after it completed, everything works as expected.
pf...@gmail.com <pf...@gmail.com> #8
My Windows 10 SDK in Powershell was similarly broken after upgrading to version 274.0.0 - the specific error I got was "\Google\Cloud was unexpected at this time".
Fortunately I had Git Bash installed, and this was not affected, so I was able to use Git Bash to run "gcloud components update --version 273.0.0".
After this, the Powershell version of SDK was again functional, albeit on 273.0.0
I think any version of Bash would work, including "Bash Ubuntu on Windows".
Fortunately I had Git Bash installed, and this was not affected, so I was able to use Git Bash to run "gcloud components update --version 273.0.0".
After this, the Powershell version of SDK was again functional, albeit on 273.0.0
I think any version of Bash would work, including "Bash Ubuntu on Windows".
sh...@google.com <sh...@google.com> #9
We have a solution for this now and are working on testing it and will post it here soon.
While we do that, blocked users can still use 273.0.0 (https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-274.0.0-windows-x86.zip ) (32 bit) or (https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-273.0.0-windows-x86_64-bundled-python.zip ) (64 bit) and use instructions from https://cloud.google.com/sdk/docs/downloads-versioned-archives to get to a working state.
Apologies for the inconvenience, we will have the workaround and patch out soon.
While we do that, blocked users can still use 273.0.0 (
Apologies for the inconvenience, we will have the workaround and patch out soon.
kb...@google.com <kb...@google.com> #10
We have a patch for two files that are causing these problems. These apply in two cases (both on Windows):
1. A new install fails, or
2. You are unable to run gcloud after performing a components update.
For case # 1, please download the attached file install.bat, and copy it to the location where you have attempted to install gcloud, e.g. C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk. Then run it, e.g.
> cd C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk
> .\install.bat
For both cases #1 and #2, download the attached file gcloud.cmd, and copy it to the bin directory under your gcloud installation, e.g.
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin. When prompted to replace the previous copy, type Yes. This should allow you to run gcloud without being prompted to set CLOUDSDK_PYTHON.
1. A new install fails, or
2. You are unable to run gcloud after performing a components update.
For case # 1, please download the attached file install.bat, and copy it to the location where you have attempted to install gcloud, e.g. C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk. Then run it, e.g.
> cd C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk
> .\install.bat
For both cases #1 and #2, download the attached file gcloud.cmd, and copy it to the bin directory under your gcloud installation, e.g.
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin. When prompted to replace the previous copy, type Yes. This should allow you to run gcloud without being prompted to set CLOUDSDK_PYTHON.
de...@gmail.com <de...@gmail.com> #11
This work around does not appear to work. I have tried it a number of times now, I am unable to run gcloud init after the install. I deleted everything and tried it again, this time even after copying the two patch files over, the installation doesn't even begin.
na...@crazyideas.co.in <na...@crazyideas.co.in> #12
To de...@gmail.com, try the workaround I used as described in https://issuetracker.google.com/issues/146652183 (i.e. install without the bundled python version)
sh...@gmail.com <sh...@gmail.com> #13
wasted 2hrs for installing sdk... Claps...
and finally couldnt install sdk... Great work from u...
and finally couldnt install sdk... Great work from u...
sh...@gmail.com <sh...@gmail.com> #14
what should i do now... do u have any work around again
at...@gmail.com <at...@gmail.com> #15
I changed path of installation of GCloudSDK to C:/GCloudSDK and it installed successfully.
aa...@smu.edu.sg <aa...@smu.edu.sg> #16
I have tried what #15 suggested but to C:/GoogleCloudSDK, it works now.
Also, tried reopening project folders in Windows Subsystem for Linux (WSL) via Visual Studio Code-Remote WSL and using gcloud from within the WSL Ubuntu 18.04 distro as an alternative solution. That works too once configured.
Also, tried reopening project folders in Windows Subsystem for Linux (WSL) via Visual Studio Code-Remote WSL and using gcloud from within the WSL Ubuntu 18.04 distro as an alternative solution. That works too once configured.
ku...@gmail.com <ku...@gmail.com> #17
this is how i downgraded
C:\Program Files (x86)\Google\Cloud SDK>py -2 "google-cloud-sdk\lib\gcloud.py" components update --version 269.0.0
C:\Program Files (x86)\Google\Cloud SDK>py -2 "google-cloud-sdk\lib\gcloud.py" components update --version 269.0.0
sa...@gmail.com <sa...@gmail.com> #18
Cloud SDK installer works perfectly only for C:\Users\<name>\AppData\Local\Google\Cloud SDK and if you set
"$env:Temp\GoogleCloudSDKInstaller.exe" and CLOUDSDK_BQ_PYTHON,
CLOUDSDK_GSUTIL_PYTHON, CLOUDSDK_PYTHON, uncheck Bundled Python in windows but if you set something like C:\Program Files (x86) whith same setings than can not read CLOUDSDK_PYTHON environment variable and needs python 2.7
i tested with python 38
"$env:Temp\GoogleCloudSDKInstaller.exe" and CLOUDSDK_BQ_PYTHON,
CLOUDSDK_GSUTIL_PYTHON, CLOUDSDK_PYTHON, uncheck Bundled Python in windows but if you set something like C:\Program Files (x86) whith same setings than can not read CLOUDSDK_PYTHON environment variable and needs python 2.7
i tested with python 38
kb...@google.com <kb...@google.com> #19
Please install the latest Cloud SDK version 274.0.1. This is a patch release that fixes the problems on Windows, specifically around paths with spaces. The install should run successfully now.
kb...@google.com <kb...@google.com> #20
If you are having problems with gcloud components update, you can replace the gcloud.cmd file with the one attached to this comment. The one attached to #10 fixed some but not all cases, this is a more complete fix.
The gcloud.cmd file is located under your gcloud installation directory in the bin folder.
The gcloud.cmd file is located under your gcloud installation directory in the bin folder.
ca...@gmail.com <ca...@gmail.com> #21
Same problem keeping even using the 274.0.1 and unchecked the bundled python. CLOUDSDK_PYTHON and PATH also add the python path and install the python as window app
"Output folder: C:\Users\capho\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\capho\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
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.
Failed to install."
"Output folder: C:\Users\capho\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\capho\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
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.
Failed to install."
ma...@gmail.com <ma...@gmail.com> #22
Please upgrade to Cloud SDK 106.0.0 or later, which is now released, and try again.
kk...@gmail.com <kk...@gmail.com> #23
I can't add much ideas about fixing the issue, but I have a helpful general advice to share. My years as a Windows user and developer taught me to do create a couple of hidden links the first thing on every new system (from an elevated console, of course):
C:\>mklink /D _P "Program Files"
C:\>attrib +S +H +R _P /L
and, ditto, for _PX -> "Program Files (x86)".
You can see them with 'dir /a':
2019-06-24 20:14 <SYMLINKD> _P [Program Files]
2019-06-24 20:14 <SYMLINKD> _PX [Program Files (x86)]
The first command creates a directory symlink, the second marks the symlink itself (do not forget the '/L'!) as system, hidden and readonly, so that it's not shown in Explorer. But you know it's there!
Then I change the install paths, if the installer offers the option, from e. g. "C:\Program Files (x86)\Microsoft\Visual Studio 2017" to "C:\_PX\Microsoft\VS2017". I *just know* the space will come back to bite my glutes hard, sooner or later.
I've been doing it for years, since Windows 7 "officially" added softlinks and the mklink command, and not one single program complained or was broken by this. Also, your PATH becomes more succinct and readable. You do not always have a choice (e.g. the same VS 201{3,5,7,9} installer installs SQL components under "C:\Program Files" regardless of its own install path), but still, the fewer spaces, the better.
I mean, for everyone affected, it's not too late to take up this practice right now...
C:\>mklink /D _P "Program Files"
C:\>attrib +S +H +R _P /L
and, ditto, for _PX -> "Program Files (x86)".
You can see them with 'dir /a':
2019-06-24 20:14 <SYMLINKD> _P [Program Files]
2019-06-24 20:14 <SYMLINKD> _PX [Program Files (x86)]
The first command creates a directory symlink, the second marks the symlink itself (do not forget the '/L'!) as system, hidden and readonly, so that it's not shown in Explorer. But you know it's there!
Then I change the install paths, if the installer offers the option, from e. g. "C:\Program Files (x86)\Microsoft\Visual Studio 2017" to "C:\_PX\Microsoft\VS2017". I *just know* the space will come back to bite my glutes hard, sooner or later.
I've been doing it for years, since Windows 7 "officially" added softlinks and the mklink command, and not one single program complained or was broken by this. Also, your PATH becomes more succinct and readable. You do not always have a choice (e.g. the same VS 201{3,5,7,9} installer installs SQL components under "C:\Program Files" regardless of its own install path), but still, the fewer spaces, the better.
I mean, for everyone affected, it's not too late to take up this practice right now...
gu...@gmail.com <gu...@gmail.com> #24
Welcome to the Google Cloud SDK!
Active code page: 65001
ERROR: gcloud failed to load: DLL load failed: The file cannot be accessed by the system.
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
from googlecloudsdk.api_lib.util import apis_internal
from googlecloudsdk.core import properties
from googlecloudsdk.core import config
from oauth2client import client
from oauth2client import transport
import httplib2
from httplib2.python3.httplib2 import *
import ssl
import _ssl # if we can't import it, let the error propagate
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
C:\Users\CristobalGuerrero\Anaconda3\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 39, in <module>
from googlecloudsdk.core import config
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\googlecloudsdk\core\config.py", line 33, in <module>
from oauth2client import client
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\oauth2client\client.py", line 39, in <module>
from oauth2client import transport
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\oauth2client\transport.py", line 17, in <module>
import httplib2
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\httplib2\__init__.py", line 20, in <module>
from httplib2.python3.httplib2 import *
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\httplib2\python3\httplib2\__init__.py", line 40, in <module>
import ssl
File "C:\Users\CristobalGuerrero\Anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The file cannot be accessed by the system.
Active code page: 437
Google Cloud SDK installer will now exit.
Hi I think I'm having a similar issue, does anyone have any advice?
Active code page: 65001
ERROR: gcloud failed to load: DLL load failed: The file cannot be accessed by the system.
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
from googlecloudsdk.api_lib.util import apis_internal
from googlecloudsdk.core import properties
from googlecloudsdk.core import config
from oauth2client import client
from oauth2client import transport
import httplib2
from httplib2.python3.httplib2 import *
import ssl
import _ssl # if we can't import it, let the error propagate
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
C:\Users\CristobalGuerrero\Anaconda3\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 39, in <module>
from googlecloudsdk.core import config
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\googlecloudsdk\core\config.py", line 33, in <module>
from oauth2client import client
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\oauth2client\client.py", line 39, in <module>
from oauth2client import transport
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\oauth2client\transport.py", line 17, in <module>
import httplib2
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\httplib2\__init__.py", line 20, in <module>
from httplib2.python3.httplib2 import *
File "C:\Program Files (x86)\Google\CloudSDK\google-cloud-sdk\lib\third_party\httplib2\python3\httplib2\__init__.py", line 40, in <module>
import ssl
File "C:\Users\CristobalGuerrero\Anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The file cannot be accessed by the system.
Active code page: 437
Google Cloud SDK installer will now exit.
Hi I think I'm having a similar issue, does anyone have any advice?
[Deleted User] <[Deleted User]> #25
dnfksdnfsjdf
[Deleted User] <[Deleted User]> #26
none
da...@google.com <da...@google.com> #27
Hello,
At this time, we have been unable to reproduce this Issue. If you believe the issue still persist, please create a new Issue Tracker and refer to this one so a new investigation can be launched.
At this time, we have been unable to reproduce this Issue. If you believe the issue still persist, please create a new Issue Tracker and refer to this one so a new investigation can be launched.
pa...@fairpricegroup.sg <pa...@fairpricegroup.sg> #28
Hi,
I have tried to install Cloud SDK installer in Windows 10 laptop. I tried many times with python and without python also same error. Please help on this.
Output folder: D:\Users\1040685\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: D:\Users\1040685\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
Active code page: 65001
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
Active code page: 437
Failed to install.
Thanks
Palani
I have tried to install Cloud SDK installer in Windows 10 laptop. I tried many times with python and without python also same error. Please help on this.
Output folder: D:\Users\1040685\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: D:\Users\1040685\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
Active code page: 65001
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
Active code page: 437
Failed to install.
Thanks
Palani
lo...@gmail.com <lo...@gmail.com> #29
I'm having the same issue as listed in #24 above. It looks like it's failing at trying to import File "C:\Users\u0932260\Anaconda3\lib\ssl.py", line 98, in <module>. I looked in my Anaconda 3 directory and there is a "\Lib\ssl.py" but the folder "Lib" is capitalized instead of "lib" like it's looking for. Could that be why it's failing?
I tried creating a shortcut called "lib" that pointed to the folder "Lib" but that didn't work. (I tried rebooting also between installation attempts)
Thanks,
Logan
Output below:
Output folder: C:\Users\u0932260\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\u0932260\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Python was not found but can be installed from the Microsoft Store:https://go.microsoft.com/fwlink?linkID=2082640Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640Welcome to the Google Cloud SDK!
ERROR: gcloud failed to load: DLL load failed while importing _ssl: The specified module could not be found.
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import arg_parsers
from googlecloudsdk.core import log
from googlecloudsdk.core import properties
from googlecloudsdk.core import config
from oauth2client import client
from oauth2client import transport
import httplib2
from httplib2.python3.httplib2 import *
import ssl
import _ssl # if we can't import it, let the error propagate
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
C:\Users\u0932260\Anaconda3\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Traceback (most recent call last):
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 39, in <module>
from googlecloudsdk.core import config
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\config.py", line 33, in <module>
from oauth2client import client
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\oauth2client\client.py", line 39, in <module>
from oauth2client import transport
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\oauth2client\transport.py", line 17, in <module>
import httplib2
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\httplib2\__init__.py", line 20, in <module>
from httplib2.python3.httplib2 import *
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\httplib2\python3\httplib2\__init__.py", line 40, in <module>
import ssl
File "C:\Users\u0932260\Anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: The specified module could not be found.
Failed to install.
I tried creating a shortcut called "lib" that pointed to the folder "Lib" but that didn't work. (I tried rebooting also between installation attempts)
Thanks,
Logan
Output below:
Output folder: C:\Users\u0932260\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\u0932260\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Python was not found but can be installed from the Microsoft Store:
ERROR: gcloud failed to load: DLL load failed while importing _ssl: The specified module could not be found.
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import arg_parsers
from googlecloudsdk.core import log
from googlecloudsdk.core import properties
from googlecloudsdk.core import config
from oauth2client import client
from oauth2client import transport
import httplib2
from httplib2.python3.httplib2 import *
import ssl
import _ssl # if we can't import it, let the error propagate
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
C:\Users\u0932260\Anaconda3\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
Traceback (most recent call last):
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 39, in <module>
from googlecloudsdk.core import config
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\config.py", line 33, in <module>
from oauth2client import client
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\oauth2client\client.py", line 39, in <module>
from oauth2client import transport
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\oauth2client\transport.py", line 17, in <module>
import httplib2
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\httplib2\__init__.py", line 20, in <module>
from httplib2.python3.httplib2 import *
File "C:\Users\u0932260\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\httplib2\python3\httplib2\__init__.py", line 40, in <module>
import ssl
File "C:\Users\u0932260\Anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: The specified module could not be found.
Failed to install.
bh...@loblaw.ca <bh...@loblaw.ca> #30
Not able to Install. Getting the below error.
Output folder: C:\Users\b.ramakant.redkar\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\b.ramakant.redkar\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
Beginning update. This process may take several minutes.
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
Failed to install.
Output folder: C:\Users\b.ramakant.redkar\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\b.ramakant.redkar\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
Beginning update. This process may take several minutes.
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
Failed to install.
al...@gmail.com <al...@gmail.com> #31
component installation did not complete successfully....what to do??
[Deleted User] <[Deleted User]> #32
Hi All,
I've found a workaround.
I add a windows variable "CLOUDSDK_PYTHON", and set the value as "PATH + Exe" (like this example "C:\Users\John\AppData\Local\Programs\Python\Python38\python.exe" .
And it works GREAT!! I finally can install GCP CLI without any problem.
Hope it also works on your system.
I've found a workaround.
I add a windows variable "CLOUDSDK_PYTHON", and set the value as "PATH + Exe" (like this example "C:\Users\John\AppData\Local\Programs\Python\Python38\python.exe" .
And it works GREAT!! I finally can install GCP CLI without any problem.
Hope it also works on your system.
el...@gmail.com <el...@gmail.com> #33
Hi,
I had this issue. I fix it by uninstall all versions of python and install only the last one.
I was inspired by : ma...@gmail.com<ma...@gmail.com> #7 : thanks !
I had this issue. I fix it by uninstall all versions of python and install only the last one.
I was inspired by : ma...@gmail.com<ma...@gmail.com> #7 : thanks !
el...@gmail.com <el...@gmail.com> #34
jo...@sip.cl <jo...@sip.cl> #35
Python path 'c:\python37 \phyton.exe'
ch...@gmail.com <ch...@gmail.com> #36
I'm facing the same issue right now, except I installed python in D:\python\,and trying to install google cloud sdk version of google-cloud-cli-439.0.0-windows-x86_64.zip, here are the things I tried:
-1 install google-cloud-cli-439.0.0 with/without bundled python package
-2 install by installer
-3 uninstall and install python 3.6, 3.9, 3.10
-4 add CLOUDSDK_PYTHON to the point of python installation, down to python.exe
-5 reboot computer after removing old sdk folder
after all these, still no luck
error output like:
ERROR: gcloud failed to load: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
parsed_config.read(properties_path)
self._read(fp, filename)
raise MissingSectionHeaderError(fpname, lineno, line)
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py", line 104, in main
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py", line 83, in _import_gcloud_main
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud_main.py", line 34, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\base.py", line 31, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\arg_parsers.py", line 62, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 849, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 584, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 597, in Reset
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 371, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3689, in Get
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3709, in GetPropertyValue
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\named_configs.py", line 447, in Load
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 52, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 66, in __Load
googlecloudsdk.core.configurations.properties_file.PropertiesParseError: File contains no section headers.
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 3.5+ executable:
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 64, in __Load
parsed_config.read(properties_path)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\configparser.py", line 1085, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 46, in <module>
from googlecloudsdk.core import execution_utils
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\execution_utils.py", line 37, in <module>
from googlecloudsdk.core import log
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 849, in <module>
_log_manager = _LogManager()
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 584, in __init__
self.Reset(sys.stdout, sys.stderr)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 597, in Reset
std_console_formatter = _ConsoleFormatter(stderr)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 371, in __init__
console_log_format = properties.VALUES.core.console_log_format.Get()
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3689, in Get
property_value = self.GetPropertyValue(required, validate)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3709, in GetPropertyValue
named_configs.ActivePropertiesFile.Load(),
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\named_configs.py", line 447, in Load
ActivePropertiesFile._PROPERTIES = properties_file.PropertiesFile(
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 52, in __init__
self.__Load(properties_path)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 66, in __Load
raise PropertiesParseError(str(e))
googlecloudsdk.core.configurations.properties_file.PropertiesParseError: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Failed to install.
-1 install google-cloud-cli-439.0.0 with/without bundled python package
-2 install by installer
-3 uninstall and install python 3.6, 3.9, 3.10
-4 add CLOUDSDK_PYTHON to the point of python installation, down to python.exe
-5 reboot computer after removing old sdk folder
after all these, still no luck
error output like:
ERROR: gcloud failed to load: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
parsed_config.read(properties_path)
self._read(fp, filename)
raise MissingSectionHeaderError(fpname, lineno, line)
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py", line 104, in main
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py", line 83, in _import_gcloud_main
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud_main.py", line 34, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\base.py", line 31, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\arg_parsers.py", line 62, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 849, in <module>
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 584, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 597, in Reset
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 371, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3689, in Get
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3709, in GetPropertyValue
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\named_configs.py", line 447, in Load
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 52, in __init__
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 66, in __Load
googlecloudsdk.core.configurations.properties_file.PropertiesParseError: File contains no section headers.
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 3.5+ executable:
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 64, in __Load
parsed_config.read(properties_path)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\configparser.py", line 1085, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\install.py", line 12, in <module>
import bootstrapping
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 46, in <module>
from googlecloudsdk.core import execution_utils
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\execution_utils.py", line 37, in <module>
from googlecloudsdk.core import log
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 849, in <module>
_log_manager = _LogManager()
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 584, in __init__
self.Reset(sys.stdout, sys.stderr)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 597, in Reset
std_console_formatter = _ConsoleFormatter(stderr)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\log.py", line 371, in __init__
console_log_format = properties.VALUES.core.console_log_format.Get()
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3689, in Get
property_value = self.GetPropertyValue(required, validate)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\properties.py", line 3709, in GetPropertyValue
named_configs.ActivePropertiesFile.Load(),
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\named_configs.py", line 447, in Load
ActivePropertiesFile._PROPERTIES = properties_file.PropertiesFile(
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 52, in __init__
self.__Load(properties_path)
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\configurations\properties_file.py", line 66, in __Load
raise PropertiesParseError(str(e))
googlecloudsdk.core.configurations.properties_file.PropertiesParseError: File contains no section headers.
file: 'C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Failed to install.
ch...@gmail.com <ch...@gmail.com> #37
please ignore my comment above, I found the issue finally! after deleting file C:\\Users\\Administrator\\AppData\\Roaming\\gcloud\\configurations\\config_default, and re run install.bat, issue solved!!!! thank god, I was going to reinstall system
su...@biswagames.com <su...@biswagames.com> #38
As per comment #32 here,
If you have multiple python installations, gcloud complains about python not being found, but manually setting CLOUDSDK_PYTHON to python installated executable path (installation path + python.exe), and then restarting gcloud cli worked for me.
If you have multiple python installations, gcloud complains about python not being found, but manually setting CLOUDSDK_PYTHON to python installated executable path (installation path + python.exe), and then restarting gcloud cli worked for me.
Description
Problem you have encountered:
If there is an existing Python installation in a path similar to C:\Program Files\Python37 OR if Cloud SDK installer is used to try and install to a path such as C:\Program Files (x86) (i.e. paths that contain spaces) then the installer will fail to work correctly.
In the first situation, it will fail to find an existing python installation and so fails with an error saying python needs to be installed first.
In the second situation it will appear to install correctly but trying to use gcloud on the command line generates an error like "\Google\Cloud SDK\ was unexpected at this time".
To work around this I reinstalled python in a path like C:\Python37 and then installed Cloud SDK in C:\Cloud_SDK and the installation worked correctly.
What you expected to happen:
Installer should correctly find python installations regardless of spaces in path
Installer should work correctly if SDK installation path contains spaces
Steps to reproduce:
As above
Other information (workarounds you have tried, documentation consulted, etc):