Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud SDK installer fails to complete component installation on Windows 7

During installation I get a message:

Unfortunately, the component installation did not complete successfully. Please check the detailed logs for the error message.

I tried installing to all users, single user, many destinations and names.

Details:

Output folder: C:\Program Files (x86)\Google\Cloud SDK Downloading Google Cloud SDK core. Extracting Google Cloud SDK core. Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat Installing components. The filename, directory name, or volume label syntax is incorrect. Failed to install.

What to do?

like image 522
Vladas K Avatar asked Mar 01 '16 14:03

Vladas K


4 Answers

for some reason it seems it doesn't like the spaces in the path. Change to other path without spaces: like C:/some/folder/with/no/spaces/cloud-sdk

like image 89
user6352832 Avatar answered Oct 19 '22 10:10

user6352832


The 'find' command is a standard Windows command which has been around since the days of DOS. If it doesn't exist on your system, this usually means your PATH is broken or someone has deleted 'find.exe' from C:\Windows\System32. In either case it's not an issue with the Cloud SDK installer.

If you still have 'find.exe' in C:\Windows\System32, you can check your PATH variable and add 'C:\Windows\System32' back to it if it's not included.

Source: https://issuetracker.google.com/issues/35907845

like image 34
Mohit Deshwal Avatar answered Oct 19 '22 08:10

Mohit Deshwal


I got the same error when installing it yesterday and I tried a different sets of solutions for this.

  • I created a find.exe path in my PATH variable
  • I also created a CLOUDSDK_PYTHON path in my environment variable
  • I tried uninstalling Python (2.7.14, I think) and re-installing it.
  • I redirected the path where the SDK is going to be installed to. The default path was C:\Program Files (x86)\Google\Cloud SDK\. I just removed the space on CloudSDK and it installed right after.

Hope this helps.

like image 3
Keith Peñas Avatar answered Oct 19 '22 08:10

Keith Peñas


It is a space issue in Cloud SDK folder/directory path, google cloud sdk installer adds default path as

C:\{USER_DIR}\Google\Cloud SDK

So remove space between Cloud and SDK or change path to different folder without spaces, it should work fine.

like image 1
MrKulli Avatar answered Oct 19 '22 09:10

MrKulli