[google-cloud-sdk] Install fails on windows 10

8,193 views
Skip to first unread message

Lennart Bernhardt

unread,
Mar 18, 2017, 12:40:27 PM3/18/17
to Google Cloud Developers
The logs shows this error message which I can't make sense of 

Output folder: C:\Users\Lenny\AppData\Local\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\Lenny\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
ERROR: gcloud failed to load: DLL load failed: %1 is not a valid Win32 application.
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 executable:
    C:\Users\Lenny\AppData\Local\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 2.7 executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
Traceback (most recent call last):
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 8, in <module>
    import bootstrapping
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 17, in <module>
    import oauth2client.contrib.gce as gce
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\oauth2client\contrib\gce.py", line 23, in <module>
    import httplib2
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\httplib2\__init__.py", line 36, in <module>
    import httplib
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\httplib.py", line 72, in <module>
    import socket
  File "C:\Users\Lenny\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\socket.py", line 47, in <module>
    import _socket
ImportError: DLL load failed: %1 is not a valid Win32 application.
Failed to install.


I verified that it's pointing to a valid python 2.7 executable. 

Got any ideas? 

Lennart Bernhardt

unread,
May 7, 2017, 8:56:36 AM5/7/17
to Google Cloud Developers
The problem is still persisting

Chris Sells

unread,
May 8, 2017, 8:43:08 PM5/8/17
to Google Cloud Developers
Do you have an existing installation of the Google Cloud SDK? Can you try uninstalling and reinstalling?

Aylin Altiok

unread,
May 8, 2017, 9:53:07 PM5/8/17
to Google Cloud Developers
Hi Lennart, 

Which Cloud SDK version are you installing (please try the latest one)? This could be due to PATH system variable of your Windows machine is altered and removed. 
Please see the similar issue recently that was resolved by fixing the PATH:  https://issuetracker.google.com/issues/37366016 

Can you please try the steps indicated in the link and let us know if you still see it?
Reply all
Reply to author
Forward
0 new messages