Bug 2221900
| Summary: | Pylint doesn't work with the latest Astroid available in rawhide | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vojtech Trefny <vtrefny> |
| Component: | pylint | Assignee: | Gwyn Ciesla <gwync> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | gwync, mhroncok, orion, philip.wyett |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pylint-2.17.4-3.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-11 15:26:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2220412 | ||
Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/pylint/utils/ast_walker.py", line 91, in walk callback(astroid) File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 2096, in visit_subscript self._check_invalid_sequence_index(node) File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 1688, in _check_invalid_sequence_index if subscript.ctx is astroid.Store: ^^^^^^^^^^^^^ AttributeError: module 'astroid' has no attribute 'Store Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/pylint/utils/ast_walker.py", line 91, in walk callback(astroid) File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 2112, in visit_subscript if node.ctx == astroid.Load: ^^^^^^^^^^^^ AttributeError: module 'astroid' has no attribute 'Load' ----------- These constants were moved in latest Astroid, this Pylint patch needs to be backported to Fedora: https://github.com/pylint-dev/pylint/pull/8611 Reproducible: Always