-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Astroid 2.12 breaks sphinx autoapi (at least for Airflow) #1708
Comments
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid.
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid.
Thanks for the report! Failing action. The offending line is something like this:
Either we incorrectly classify Or it is a namespace package with a mangled @jacobtylerwalls Does this ring a bell? |
Thanks for the report. Looks like we need to add a |
Yep. same problems on 3.10 at least. |
BTW. I you have a candidate to test, I am happy to test it. For now we limited astroid to < 2.12 so we are good, but we do not like to keep the upper-binding on our dependencies :). |
@potiuk If you wanted to test #1714 that would be fantastic. I'm worried you might run into benjaminp/six#261, but there is a workaround listed there. |
On it. |
Yep. Confirmed it fixes the problem (though some tests are failing for you :P ) .
|
Nice!
yeah, I was hoping to get a reproducer without |
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. (cherry picked from commit ee564ef)
@potiuk: |
Sorrry for the delay. Had to catch up with stuff :) Yep. Installed astroid from tip of https://github.com/jacobtylerwalls/astroid/tree/namespace-path-crash and it also solves the problem: |
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. (cherry picked from commit ee564ef9e57707ef07db1c3353a1406e47d8e3db) GitOrigin-RevId: 06e4976aaf3236d06b7e6ec85a796f82718ddfcd
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. GitOrigin-RevId: ee564ef9e57707ef07db1c3353a1406e47d8e3db
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. (cherry picked from commit ee564ef9e57707ef07db1c3353a1406e47d8e3db) GitOrigin-RevId: 06e4976aaf3236d06b7e6ec85a796f82718ddfcd
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. GitOrigin-RevId: ee564ef9e57707ef07db1c3353a1406e47d8e3db
Astroid 2.12 released 9th of July breaks documentation building with sphinx-autoapi. Issue about it has been opened in pylint-dev/astroid#1708 Until it is fixed, we should limit astroid. GitOrigin-RevId: ee564ef9e57707ef07db1c3353a1406e47d8e3db
Steps to reproduce
pip install ".[doc]"
pip install --upgrade astroid
(2.12.1 should be installed)pip install astroid==2.11.7
NOTE. The above might fail because of libenchant could not be installed (especially on MacOS silicon)
You can reproduce it easily using our CI docker image - with all dependencies needed installed:
pip install astroid==2.11.7
Also downgrading to 2.12.0 leads to failures.
Example failure in CI: https://github.com/apache/airflow/runs/7291353339?check_suite_focus=true#step:9:6115
Current behavior
Version 2.12.* of astroid causes sphinx autoapi to fail
Version 2.11.7 of astroid and before works.
Expected behavior
The text was updated successfully, but these errors were encountered: