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.

Allow to ignore 'Double requirement given' error

See original GitHub issue

It would be nice if ‘Double requirement given: %s (already in %s, name=%r)’ could be made a warning optionally, as long as it does not result in a conflict.

My use case is tox, where ‘django’ is defined in the test env (with version restrictions), but also in a requirements file (which is meant to install the test env outside of tox):

pip install --pre pytest pytest-django six Django>=1.7,<1.8 -rtest_project/test_requirements.txt

This results in the following error:

Double requirement given: django (from -r test_project/requirements.txt (line 3)) (already in Django<1.8,>=1.7, name=‘django’)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
piotr-dobrogostcommented, Jul 15, 2016

@rbtcollins

So the underlying issue here is #988 - without that we can’t handle the interactions that occur dealing with multiply encountered references to the same distribution.

Unless all of these references are top level which is the case here 😃

0reactions
dstufftcommented, Mar 30, 2017

I’m closing this, the fundamental issue here is #988 and this will effectively be solved by solving that issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Double requirement given when trying to use pip install pandas
Untill two days ago, the Docker container was perfectly build. Starting from yesterday, I receive an error: Double requirement given: ...
Read more >
Pip3 install from requirement file duplicate entries - Packaging
ERROR : Double requirement given: requests>=2.18.4 (from -r ... Personally I don't like the duplicate entries and i would want to remove it....
Read more >
Avoid 'Double requirements given' error when using 'pip install
i thought: what if someone doesn't want local auth but wants to use pagure CI ? then he will either comment/remove those lines...
Read more >
Pip "Double requirement given" error - Google Groups
Hi, I am trying to setup a requirements.txt file containing the following: Django==1.2.5 -e git://github.com/dcramer/django-devserver#egg=django-devserver
Read more >
Ignoring the requirements.txt - Netlify Support Forums
How can i make netlify ignore the requirements.txt ? ... echo "Error during gem install" ... else; echo "Error installing pip dependencies" ...
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