OpenSSL.SSL.Error: Missing cacert.pem in vendorized `requests` 2.13.0?
See original GitHub issueWhen I run pipenv install
I get the a stack trace ending in
OpenSSL.SSL.Error: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'BIO_new_file', 'no such file'), ('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]
This may be caused by the bundled requests
module (v2.13) missing a cacert.pem
file… see requests/requests#4019 (“OpenSSL issue when vendoring requests”). I can confirm that trying import requests; requests.get(...)
with pipenv/vendor/requests
on my path causes the error above while the same command using my system-wide requests
(v2.14.2) does not.
Related: #387 (“Strange error after upgrade on ubuntu 16.04”)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Python Requests throwing SSLError - Stack Overflow
The problem you are having is caused by an untrusted SSL certificate. Like @dirk mentioned in a previous comment, the quickest fix is...
Read more >Solve the dreadful certificate issues in Python requests module
I was using the requests module and here is the API call. response = requests.post(url, files=files, headers=headers). and was getting an error:
Read more >requests 2.13.0 - PyPI
Fixed a bug when sending JSON data that could cause us to encounter obscure OpenSSL errors in certain network conditions (yes, really).
Read more >Requests Documentation - Read the Docs
For example, if the response gets a 204 (No Content), ... and Requests will throw a SSLError if it's unable to verify the...
Read more >Community Updates — Requests 2.28.1 documentation
requests.help no longer fails on Python 2.6 due to the absence of ssl. ... to encounter obscure OpenSSL errors in certain network conditions...
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
For an immediate workaround, find the
pipenv
directory under your Python installation’ssite-packages
directory,cd
into it, and then:Alright, I’ve pushed 35518da to address this.
~@msegado and @aeleos, feel free to try installing the master branch and seeing if you’re still experiencing the issue. If not, this will be included in our next release.~
Ignore the above, this won’t be testable until we push a new sdist release since this revolves around bundling there.