Quentin123345 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

SDK shell launched by installer fails to find gcloud #339

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Install on windows x64 with python 2.7.
During final stage of installation, check the box to launch SDK shell.

What is the expected output? What do you see instead?

We expect shell to be correctly launched by installer.
Instead we see

Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of available 
commands.

---
'gcloud' is not recognized as an internal or external command, operable program 
or batch file.

What is the output of 'gcloud info'?

gcloud fails to execute, even though PATH includes SDK pathnames here...

C:\Program Files (x86)\Google\Cloud SDK>echo %PATH%
TRUE;C:\Program Files (x86)\Google\Cloud 
SDK\google-cloud-sdk\bin;C:\Python27;C:\Python27\Scripts;C:\Windows;C:\Windows\s
ystem32;c:\Windows\system32\Wbem

Please provide any additional information below.

Installer logs failures, even though product "successfully" installs.
See attached.

Original issue reported on code.google.com by jhowe.vi...@gmail.com on 24 Oct 2015 at 5:24

Attachments:

GoogleCodeExporter commented 8 years ago
Duplicated defect for python 2.7.10 and 2.7.9.

SDK installer should not indicate success when there is failure.

Original comment by jhowe.vi...@gmail.com on 24 Oct 2015 at 6:08

GoogleCodeExporter commented 8 years ago
Duplicated defect for python 2.7.10, 2.7.9, ... 2.7.5.

Works for 2.7.0 :)

There's opportunity for improvement in this installer.

Original comment by jhowe.vi...@gmail.com on 24 Oct 2015 at 7:06

GoogleCodeExporter commented 8 years ago
Thanks for the logs!
I see what the error is and we will fix it for the next version of Cloud SDK.

In terms of error details:
It seems urllib2 throws socket.timeout instead of urllib2.HTTPError or 
urllib2.URLError in this particular case. You are the first person that 
reported this and the code has been in effect for a long while.
The fact that it works for 2.7.0 is not clear why. 
http://bugs.python.org/issue1537445 has been filed since 2006, since python 2.6.

Original comment by svalen...@google.com on 26 Oct 2015 at 4:28