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 tries to install conditional dependency that it should not

See original GitHub issue

Hi!

I think pipenv might be trying to install a package from extras_require that has a conditional dependency looking like this ":python_version=='2.7'": ["functools32"], when running python 3 you can see full setup.py here

Result is that it is crashing during the locking pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /var/folders/sf/3jbs_z291zj5sh_mc967y1_r0000gn/T/tmpJmGecKbuild/functools32/

➞ pipenv --version
pipenv, version 7.9.2

minimal reproducible commands

mkdir testenv
cd testenv
pipenv --three
pipenv install jsonschema

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
HeyHugocommented, Oct 18, 2017

I think it was installing pipenv via pip3 that fixed this for me.

1reaction
vphilipponcommented, Oct 13, 2017

@alercunha Make sure you have pipenv 8.2.7 installed, and be sure to clear the cache with pipenv lock --clear. The cache could have invalid dependencies left, caused from a bug that was in 8.2.6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv: dependencies of platform specific packages are ...
I tested it by changing the restriction to 'Linux' and trying to install the dependencies into a new environment without the Pipfile.
Read more >
Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . There are some known issues with using...
Read more >
Frequently Encountered Pipenv Problems
☤ Pipenv does not respect dependencies in setup.py​​ Pipfile and setup.py serve different purposes, and should not consider each other by default. See...
Read more >
How to PIP Install Requests Python Package - ActiveState
Pip Install Requests as a Dependency. Pip will allow you to declare a specific Requests version as a dependency in a requirements.txt file, ......
Read more >
Conditional Python Dependencies - Hynek Schlawack
Since the inception of wheels that install Python packages without executing arbitrary code, we need a static way to encode conditional ...
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