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.

pipenv misses some dependencies during installs

See original GitHub issue

Hi guys. I believe there is a bug somewhere in pipenv which is causing the behaviour highlighted here: fabric/fabric#1675.

In short, I had to manually specify a dependency of another dependency in my Pipenv file because someone (pipenv? virtualenv? something else?) wasn’t able to see it and therefore import it while issuing CLI commands within the scope of a pipenv shell session.

Anything you need me to do to help troubleshoot this please let me know. Thank you in advance.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vphilipponcommented, Oct 13, 2017

I’d put my money on another case of “wrong wheel used for dependencies resolving”, which is fixed in 8.2.7.

What likely happened is that a Py3.4+ wheel of cryptography was selected for listing the dependencies (even if the environment was Py2, that’s the bug), which didn’t list enum34 as a dependency (as its only needed for Py<3.4). Then, when installing, pipenv strictly installed what was in Pipfile.lock (using the equivalent of pip install --no-deps), assuming the Pipfile.lock included all the right dependencies, which wasn’t the case due to the bug. This is how enum34 ended up missing in the environment, causing the ImportError.

Could you update to pipenv 8.2.7, lock with a cleared cache (pipenv lock --clear), and confirm if its fixed?

0reactions
erinxoconcommented, Oct 18, 2017

Closing this in favor of issue #909 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Python package dependencies with pipenv?
You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock --clear, then try the original...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
Be aware that the 'Installation Succeeded' alert is untrue; there is no Panadas to install. All that s occurred is the addition of...
Read more >
Pipenv and S2I: A better way to manage Python ...
The Pipenv packaging tool and Source-to-Image (S2I) help keep the proper Python dependencies in containerized applications.
Read more >
Release and Version History — pipenv 2022.12.20.dev0 ...
Fix for requirementslib hanging during install of remote wheels files. ... for certain dependencies with missing cache entries or fresh Pipenv installs.
Read more >
pipenv Documentation
This tutorial walks you through installing and using Python packages. ... which could occur when locking VCS dependencies in some cases.
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