question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenSSL.SSL.Error: Missing cacert.pem in vendorized `requests` 2.13.0?

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
iamthadcommented, Jul 6, 2017

For an immediate workaround, find the pipenv directory under your Python installation’s site-packages directory, cd into it, and then:

cd vendor/requests
wget https://raw.githubusercontent.com/kennethreitz/pipenv/master/pipenv/vendor/requests/cacert.pem
2reactions
nateprewittcommented, Jun 21, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found