Obsolete
Status Update
Comments
zj...@google.com <zj...@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
pa...@gmail.com <pa...@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).
zj...@google.com <zj...@google.com> #4
Thanks for the additional information.
Looks like your Python installation is having a hard time connecting securely to Google. What Python version are you using? What happens when you run
> python -c 'import urllib2; print urllib2.urlopen("https://dl.google.com/ ").read()'
using that Python installation.
We need to do a better job of detecting when the installation fails.
Looks like your Python installation is having a hard time connecting securely to Google. What Python version are you using? What happens when you run
> python -c 'import urllib2; print urllib2.urlopen("
using that Python installation.
We need to do a better job of detecting when the installation fails.
pa...@gmail.com <pa...@gmail.com> #5
I'm using python 2.7.10.
As far as I can tell, it is the same error.
>>> import urllib2; print urllib2.urlopen("https://dl.google.com/ ").read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
>>>
As far as I can tell, it is the same error.
>>> import urllib2; print urllib2.urlopen("
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
>>>
zj...@google.com <zj...@google.com> #6
Okay, then it's a problem with the way Python is hooked up to your computer's certificate store, or a problem with the certificate store itself.
Can you try connecting to that URL using a web browser (one that's not Chrome would be great, since I think Chrome does some funky stuff with its certificate stores). IE or Edge would be great.
Can you try connecting to that URL using a web browser (one that's not Chrome would be great, since I think Chrome does some funky stuff with its certificate stores). IE or Edge would be great.
pa...@gmail.com <pa...@gmail.com> #7
Well, I'm not really good at reading or writing code, so the only thing I can see it should download https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz
I downloaded this file using browser, extracted it and tried executing install.bat because I'm on windows.
This happens:
Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized data on how
the SDK is used. You may choose to opt out of this collection now (by choosing
'N' at the below prompt), or at any time in the future by running the following
command:
gcloud config set --scope=user disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? Y
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
Google Cloud SDK installer will now exit.
Drücken Sie eine beliebige Taste . . .
I downloaded this file using browser, extracted it and tried executing install.bat because I'm on windows.
This happens:
Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized data on how
the SDK is used. You may choose to opt out of this collection now (by choosing
'N' at the below prompt), or at any time in the future by running the following
command:
gcloud config set --scope=user disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? Y
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
Google Cloud SDK installer will now exit.
Drücken Sie eine beliebige Taste . . .
zj...@google.com <zj...@google.com> #8
Upon further research, it looks like you're hitting this OpenSSL bug: http://stackoverflow.com/questions/27804710/python-urllib2-ssl-error/27826829#27826829
We'll take a look at ways that we can work around this bug on our end. You may be able to use a solution like the one here:http://stackoverflow.com/a/31915123/4922212
We'll take a look at ways that we can work around this bug on our end. You may be able to use a solution like the one here:
pa...@gmail.com <pa...@gmail.com> #9
I just downloaded Python 2.7.9.
It worked! Thank you!
It worked! Thank you!
my...@gmail.com <my...@gmail.com> #10
Doesn't work for Python 2.7.10 & 3.5.0
Works fine for Python 2.7.9
Works fine for Python 2.7.9
zj...@google.com <zj...@google.com> #11
We've added a workaround for systems with incorrectly-configured certificate stores for Python and we're targeting Cloud SDK release 0.9.88.
zj...@google.com <zj...@google.com> #12
0.9.88 is out. Please let us know if you can still reproduce this issue.
ja...@voicemonk.com <ja...@voicemonk.com> #13
This issue is still happening with a download i tried few mts back. Can you please help?
zj...@google.com <zj...@google.com> #14
What's the error message you're getting? Can you paste it here?
da...@gmail.com <da...@gmail.com> #15
Output folder: C:\Program Files (x86)\Google\Cloud SDK
Checking for Python 2.7...
Create folder: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk
Extract: google-cloud-sdk\install_google_cloud_sdk.py
Create bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Downloading Google Cloud SDK and installing components...
Traceback (most recent call last):
File "google-cloud-sdk\install_google_cloud_sdk.py", line 99, in <module>
main()
File "google-cloud-sdk\install_google_cloud_sdk.py", line 83, in main
archive_path = DownloadArchive(t, url)
File "google-cloud-sdk\install_google_cloud_sdk.py", line 63, in DownloadArchive
req = urlopen(url)
File "C:\python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
Failed to install.
Windows 10
Python 2.7.10
Trying "urllib2.urlopen("https://dl.google.com/ ").read()" directly yields:
print urllib2.urlopen("https://dl.google.com/ ").read()
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
Checking for Python 2.7...
Create folder: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk
Extract: google-cloud-sdk\install_google_cloud_sdk.py
Create bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Downloading Google Cloud SDK and installing components...
Traceback (most recent call last):
File "google-cloud-sdk\install_google_cloud_sdk.py", line 99, in <module>
main()
File "google-cloud-sdk\install_google_cloud_sdk.py", line 83, in main
archive_path = DownloadArchive(t, url)
File "google-cloud-sdk\install_google_cloud_sdk.py", line 63, in DownloadArchive
req = urlopen(url)
File "C:\python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
Failed to install.
Windows 10
Python 2.7.10
Trying "urllib2.urlopen("
print urllib2.urlopen("
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
da...@gmail.com <da...@gmail.com> #16
I installed from the zip/archive and this *worked*. So, it appears to be a problem with the Windows installer.
zj...@google.com <zj...@google.com> #17
Thanks for letting us know. There shouldn't be any differences between the Windows installer and the zip/archive installation method, so something's a little fishy. We'll investigate.
zj...@google.com <zj...@google.com> #18
Is there any chance that you're using different Python installations in the installer vs. when installing from the archive?
da...@gmail.com <da...@gmail.com> #19
It is possible (and I will check). The python installation on the Windows machine is updated (since I installed the Cloud SDK previously was working) and I don't recall doing it. This was my motivation for upgrading.
It used to be in c:\python27_x64 (2.7.9) and it is now in c:\python27 (2.7.10). Gcloud was working. When I tried to use it yesterday (before upgrading), it threw errors at being unable to find the python interpreter and, when I checked c:\python27_x64, the directory contained neither python.exe nor pythonw.exe (?) and I assumed this was because the previous version had been uninstalled.
After I installed from the archive, I had to manually set CLOUDSDK_PYTHON to the new directory in order to use gcloud.
It used to be in c:\python27_x64 (2.7.9) and it is now in c:\python27 (2.7.10). Gcloud was working. When I tried to use it yesterday (before upgrading), it threw errors at being unable to find the python interpreter and, when I checked c:\python27_x64, the directory contained neither python.exe nor pythonw.exe (?) and I assumed this was because the previous version had been uninstalled.
After I installed from the archive, I had to manually set CLOUDSDK_PYTHON to the new directory in order to use gcloud.
da...@gmail.com <da...@gmail.com> #20
I checked the Windows machine and am confident (not certain) that there's only one (2.7.10) python installation on it. As I recall the installer logs that it found a python interpreter but doesn't (?) provide specific information on where/which python interpreter.
vi...@google.com <vi...@google.com> #21
Now that you have one fixed version of python, can you please try installing using the installer to see whether it still encounters an error? Thanks.
da...@gmail.com <da...@gmail.com> #22
Please upgrade to Cloud SDK 106.0.0 or later, which is now released, and try again.
da...@gmail.com <da...@gmail.com> #23
and... I didn't fix anything. The check appeared to prove that I only had one version of python installed 2.7.10
dm...@gmail.com <dm...@gmail.com> #24
I am too getting the same error.
I logged in to Cygwin
run the command curlhttps://sdk.cloud.google.com | bash
it first asks for installing in my home directory - I Enter
then a bunch of files get downloaded
$ ls -lrt google-cloud-sdk/
total 91
-rw-r--r-- 1 USER Domain Users 63916 Apr 21 13:56 RELEASE_NOTES
-rw-r--r-- 1 USER Domain Users 684 Apr 21 13:56 README
-rw-r--r-- 1 USER Domain Users 31 Apr 21 13:56 path.zsh.inc
-rw-r--r-- 1 USER Domain Users 308 Apr 21 13:56 path.bash.inc
-rw-r--r-- 1 USER Domain Users 980 Apr 21 13:56 LICENSE
-rwxr-xr-x 1 USER Domain Users 3509 Apr 21 13:56 install.sh
-rwxr-xr-x 1 USER Domain Users 1581 Apr 21 13:56 install.bat
-rw-r--r-- 1 USER Domain Users 1945 Apr 21 13:56 completion.zsh.inc
-rw-r--r-- 1 USER Domain Users 2338 Apr 21 13:56 completion.bash.inc
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 platform
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 lib
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 bin
/home/USER/google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
/home/USER/google-cloud-sdk/install.sh: line 128: C:\python27\python.exe: command not found
Tried so many times but still getting same error. Using WINSOWS 7 Enterprise. Cygwin Setup Exe version 2.874 ( 64 bit ).
I had Python installed on my system and the Path was also updated. Again I tried to install Python from Cygwin. that didn't work. Now I uninstalled Python from my system and removed from Path still the google-cloud-sdk installation fails.
The only thing I have changed above is from my userid to USER.
I logged in to Cygwin
run the command curl
it first asks for installing in my home directory - I Enter
then a bunch of files get downloaded
$ ls -lrt google-cloud-sdk/
total 91
-rw-r--r-- 1 USER Domain Users 63916 Apr 21 13:56 RELEASE_NOTES
-rw-r--r-- 1 USER Domain Users 684 Apr 21 13:56 README
-rw-r--r-- 1 USER Domain Users 31 Apr 21 13:56 path.zsh.inc
-rw-r--r-- 1 USER Domain Users 308 Apr 21 13:56 path.bash.inc
-rw-r--r-- 1 USER Domain Users 980 Apr 21 13:56 LICENSE
-rwxr-xr-x 1 USER Domain Users 3509 Apr 21 13:56 install.sh
-rwxr-xr-x 1 USER Domain Users 1581 Apr 21 13:56 install.bat
-rw-r--r-- 1 USER Domain Users 1945 Apr 21 13:56 completion.zsh.inc
-rw-r--r-- 1 USER Domain Users 2338 Apr 21 13:56 completion.bash.inc
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 platform
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 lib
drwxr-xr-x+ 1 USER Domain Users 0 Apr 21 13:59 bin
/home/USER/google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
/home/USER/google-cloud-sdk/install.sh: line 128: C:\python27\python.exe: command not found
Tried so many times but still getting same error. Using WINSOWS 7 Enterprise. Cygwin Setup Exe version 2.874 ( 64 bit ).
I had Python installed on my system and the Path was also updated. Again I tried to install Python from Cygwin. that didn't work. Now I uninstalled Python from my system and removed from Path still the google-cloud-sdk installation fails.
The only thing I have changed above is from my userid to USER.
dm...@gmail.com <dm...@gmail.com> #25
$ python
Python 2.7.10 (default, Jun 1 2015, 18:05:38)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
[3]+ Stopped python
I have the right version of Python for Cygwin. No other python sw on my system.
Python 2.7.10 (default, Jun 1 2015, 18:05:38)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
[3]+ Stopped python
I have the right version of Python for Cygwin. No other python sw on my system.
ng...@google.com <ng...@google.com> #26
gcloud comes as a Windows native application and set of commands. You do not need Cygwin to get it to work. Simply install Python for Windows and the gcloud SDK for Windows. It should work simply using the Windows command prompt.
If you must use gcloud with Cygwin for some reason, please describe why as some hacks are possible but not favorable.
If you must use gcloud with Cygwin for some reason, please describe why as some hacks are possible but not favorable.
ng...@google.com <ng...@google.com> #27
Is anyone here still encountering issues when installing Python >= 2.7.10 for Windows to C:\python27 and the gcloud SDK for Windows with the installer[1]? There's also an installer for Windows that comes bundled with Python should someone need the convenience.
This issue is due to close in a few days.
[1]:https://cloud.google.com/sdk/downloads#versioned
This issue is due to close in a few days.
[1]:
ng...@google.com <ng...@google.com> #28
As there has been no new activity on this thread for some time, I am closing it as Obsolete.
Should you still be encountering this issue and none of the above solutions/workarounds work for you, please open a new issue linking back to this one for context.
Be sure to include the output of 'gcloud version' and any other information you think might be relevant to the issue.
Should you still be encountering this issue and none of the above solutions/workarounds work for you, please open a new issue linking back to this one for context.
Be sure to include the output of 'gcloud version' and any other information you think might be relevant to the issue.
Description
I installed latest Cloud SDK for windows with installer. Python 2.7 is installed, laucher says everything is complete.
What is the expected output? What do you see instead?
I type in cmd.exe "gcloud": gloud is either typed wrong or could not be found.
What is the output of 'gcloud info'?
It's not possible to execute.
Please provide any additional information below.
Checked the SDK path, there is no "bin" folder. Don't know what the problem is.