-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airflow 2.6.1 Constraints Inconsistency prevents custom install of Sphinx #31366
Comments
Thanks - I will have a look at that - that sounds very strange indeed. |
Currently Sphinx is defined in constraints to 5.3.0, taking a look to changelogs the most recent version 7.0.1 states: Release 7.0.1 (released May 12, 2023)
Don't know how, just in |
The problem is sphinx-rtd-theme which is used to build our docs:
|
This is if I try to manually update sphinx to latest. Seems like a number of projects have the same issue readthedocs/sphinx_rtd_theme#1463 |
PR seem to be in review (and green) to fix it. Opened 3 weeks ago readthedocs/sphinx_rtd_theme#1464 |
Encouraging it is most welcome |
Just did a status check, fix in readthedocs/sphinx_rtd_theme#1464 is still not merged :-(
|
The fix to upgrade sphinx version to 7 is coming in #33156 |
When we are trying to install Sphinx which is pinned to 5.3.0, we get the following dependency error: The conflict is caused by: sphinx 5.3.0 depends on docutils<0.20 and >=0.14 The user requested (constraint) docutils==0.20.1 See apache/airflow#31366
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author. |
This issue has been closed because it has not received response from the issue author. |
Apache Airflow version
2.6.1
What happened
See also discussion in Slack: https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1684331895556709
We use Airflow based on docker image
apache/airflow:2.6.1-python3.8
and build custom PIP packages on-top. Of course following the setup guide we source the constraints 3.8.txt alongside to keep a consistent setup.With the upgrade to Airflow 2.6.1 we are trying to install
Sphinx
which is pinned to 5.3.0, this sources the dependency ofdocutils
. Constraints pins this to 0.20. Install ofSphinx
fails with a dependency error:How
What you think should happen instead
Pip install of
Sphinx
should be possible with the standard constraints.How to reproduce
Run:
docker run -it apache/airflow:2.6.1-python3.8 bash
pip install sphinx --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.1/constraints-3.8.txt"
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
Default provider packages
Deployment
Official Apache Airflow Helm Chart
Deployment details
n/a
Anything else
Workaround: Patch docutils down to 0.19 manually in downloaded constraints-3.8.txt
This was the version used in Airflow 2.6.0
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: