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.

need to install package certifi to get pipenv to work

See original GitHub issue

I’m on ubuntu 16, I installed pipenv with pip install --user pipenv (in this case, pip is the system pip)

that installed pipenv into ~/.local/bin and ~/.local/lib/python2.7/site-packages

using pipenv install sqlalchemy failed with

  File "/home/bkc/.local/lib/python2.7/site-packages/pipenv/vendor/requests/packages/urllib3/contrib/pyopenssl.py", line 411, in load_verify_locations
    self._ctx.load_verify_locations(cafile, capath)
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 528, in load_verify_locations
    _raise_current_error()
  File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
    raise exception_type(errors)
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')]

in another shell (w/o an activated virtualenv) I then did pip install --user certifi

now pipenv install sqlachemy works as expected

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nateprewittcommented, Jul 14, 2017

Alright, this was a wheel issue because we didn’t specify include_package_data in our setup.py. I’ve pushed 06acad1 to resolve this, so it will be fixed in the next release. In the meantime, you’ll need to install certifi to resolve this.

0reactions
BallisticPaincommented, May 9, 2018

If anyone is having trouble with this when using Ansible… SOLUTION BELOW

I was trying to install pipenv, and was getting an error about certifi. It did mention in the error message about using a flag --user. So here’s my working task.

---
- hosts: # ...
  tasks:
    - name: Install pipenv
      pip:
        name:
          - certifi
          - pipenv
        extra_args: --user
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make pipenv install <package> use SSL certificate of ...
1 Answer 1 · setting a HTTPS proxy (in this case Charles) · save the Charles certificate in a .pem file · try...
Read more >
Basic Usage of Pipenv - Read the Docs
$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. Along with the basic install command,...
Read more >
Advanced Usage of Pipenv - Python Packaging Authority
We're actively working to solve this problem. You may have great luck with this, however. Installation is intended to be as deterministic as...
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Pipenv has virtual environment management built in so that you have a single ... That way, pip can resolve this conflict and install...
Read more >
pipenv · PyPI
Install all dev dependencies: ... $ pipenv install --dev Pipfile found at /Users/kennethreitz/repos/kr/pip2/test/Pipfile. Considering this to be the project home.
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