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.

idna 3.0 version package conflict

See original GitHub issue

idna released version 3.0 but requests has a dependency on idna<3, this makes it impossible to keep up to date on both packages.

Expected Result

I want to be able to install the latest idna package alongside the latest requests package

Actual Result

ERROR: Cannot install -r requirements.txt (line 12) and idna==3.0 because these package versions have conflicting dependencies.

The conflict is caused by:

    The user requested idna==3.0

    requests 2.25.1 depends on idna<3 and >=2.5

Reproduction Steps

try to run pip install on a requirements.txt file with

requests==2.25.1
idna==3.0

System Information

multiple Python versions (3.6 up to 3.9) running on Docker containers inside Drone CI/CD

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:89
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

21reactions
iambibhascommented, Feb 10, 2021

@sethmlarson how long do we have to keep using older version of idna? This is essentially blocking us from using latest version of it. I don’t think that should be suggested to anyone.

4reactions
naorlivnecommented, Apr 30, 2021

@hartwork https://github.com/psf/requests/pull/5711 will fix this, @psf are just sitting on it until the next release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip requirements installation fails in Travis due to idna version ...
One of my Travis build tests have started to fail with the following error: The conflict is ...
Read more >
Understanding Python Packages pip Dependency Resolver ...
Practical examples of when a dependency (version) conflict occurs. Differences in how conflicts are dealt with in the new and legacy dependency ...
Read more >
Cannot install Pulp due to a dependency conflict on idna 2.9
The yarl and requests packages are sub-dependencies of pulpcore, and have conflicting version needs for idna. With idna==2.9 released, this prevents Pulp from ......
Read more >
How to use Python Dependency Management Tools
Unfortunately, pip makes no attempt to resolve dependency conflicts that may arise when (for example) package A requires a different version ...
Read more >
Qiime2 2022.8 Installation error - Technical Support
Collecting package metadata (repodata.json): done Solving ... which will cause conflicts anytime there are overlapping package versions that ...
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