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.

Old libraries in setup.py causing dependency resolution to pull old transitive constraints (3 years+)

See original GitHub issue

Dear and Wonderful Citizens,

I started to look at what libraries we have defined in the constraints-*.txt file and I am a bit surprised because we have this constraints defined on very old libraries. https://github.com/apache/airflow/blob/053afe7/constraints-3.8.txt

Update (@potiuk): -> Just for clarity: constraints are automatically generated from setup.py so this is a matter of dependencies defined there. If we are to fix it, we will have to upgrade dependencies defined in setup.py NOT the constraints themselves.

Sometimes we have defined libraries that are over 3 years old, which can cause security problems. Old versions of the library may have vulnerabilities that have probably been fixed in newer versions.

I am most concerned about dependency conflicts. Old libraries are only compatible with old libraries, which can cause problems if the user wants to use a new version of the same library.

I think it’s worth investigating where these limitations come from and why we can’t use newer versions of these libraries.

You can see the list of libraries that need updating in the Jupyter interactive notebook. https://colab.research.google.com/drive/1F5Lw8qNcxCvWaYUrGZ1x3W3v3080Dq0U#scrollTo=AfIBqzjo8UId

CC: @potiuk @ryw

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
potiukcommented, Feb 19, 2022

So it’s more than ‘month passed’ 😃 . We actually implemented actions to address it 😃

1reaction
potiukcommented, Nov 26, 2020

I don’t think we’d want to fix deps for 1.10.* Our focus in #12636 is to make them fixed (and non-breakable in the future) for Airflow 2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GitHub] [airflow] potiuk edited a comment on issue #12120: Old ...
... [airflow] potiuk edited a comment on issue #12120: Old libraries in setup.py causing dependency resolution to pull old transitive constraints (3 years+)....
Read more >
The Nine Circles of Python Dependency Hell - Medium
“Dependency hell” is a term for the frustration that arises from problems with transitive (indirect) dependencies. Dependency hell in Python often happens ...
Read more >
Pip installs unnecessarily conflicting dependencies for a ...
I've specified the dependencies of a library using Poetry and ^ version constraints. The dependencies conflict if you just install the ...
Read more >
Python Dependencies - Everything You Need to Know
When managing Python environments, one of the key concerns is dependency management. Dependencies are all of the software components ...
Read more >
Should You Use Upper Bound Version Constraints?
Really large libraries hate making major releases - Python 2->3 was a ... The old solver would ignore incompatible transitive requirements ...
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