After installing Tornado v4.3, SSL_CERTIFICATE_VERIFY_FAILED error
See original GitHub issueHello everyone.
I’m running a collection of Python scripts on my box, and one of them requires the pip package [Tornado](url http://www.tornadoweb.org/en/stable/).
After installing it with pip, Gspread now refuses to work and throws an error:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
Here is the relevant portion of the stack trace:
File "/usr/lib/python2.7/site-packages/gspread/client.py", line 145, in open
feed = self.get_spreadsheets_feed()
File "/usr/lib/python2.7/site-packages/gspread/client.py", line 231, in get_spreadsheets_feed
r = self.session.get(url)
File "/usr/lib/python2.7/site-packages/gspread/httpsession.py", line 75, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/site-packages/gspread/httpsession.py", line 67, in request
response = func(url, data=data, headers=request_headers)
File "/usr/lib/python2.7/site-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
python - Tornado : [SSL: CERTIFICATE_VERIFY_FAILED]
The SSL error was because Python 3.7 does not rely on MacOS' openSSL anymore. It comes with its own openSSL bundled and doesn't...
Read more >SSL verification error on Windows · Issue #494 - GitHub
I am using Anaconda 3 x64 on Windows and I am getting SSL ... The error message came back after installing openssl and...
Read more >[conda] SSL certificate verify failed
Hi all, I am having severe troubles upgrading my Anaconda installation due to what appears to be an ssl issue. The short story...
Read more >Unable to verify server's identity: [SSL - Red Hat Customer Portal
I am trying to register but it shows only "Unable to verify server's identity: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed "
Read more >Could not fetch url https pypi python org simple 403 client ...
Tornado is listed in PyPI and can be installed with pip. ... I got this issue when trying to use pip==1.5.4 This is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is totally unrelated to gspread, its a certificate verification issue on older python versions. I worked around this by downgrading/pinning ‘certifi’ package which is an indirect dependency. Try pip uninstall certifi && pip install certifi==2015.4.28, 2015.9.6, 2015.9.6.2 … one of those should work again Needless to say : this is a temporary workaround, the right solution is to upgrade Python to latest and making sure certificates are correctly validated
I’m closing this as the issue is not related to gspread.