-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to import 'collections.abc' using python 3.13.1 #10112
Unable to import 'collections.abc' using python 3.13.1 #10112
Comments
Thanks, we'll jump on this 👍 |
Reopening to keep visibility until we bump astroid later today. |
Polling other contributors, can anyone reproduce this locally? @zenlyj @mbyrnepr2 |
LGTM @jacobtylerwalls (venv3131) markbyrne@Marks-MacBook-Air-2 programming % python -m pylint --version
pylint 4.0.0-dev0
astroid 3.3.6
Python 3.13.1 (v3.13.1:06714517797, Dec 3 2024, 14:00:22) [Clang 15.0.0 (clang-1500.3.9.4)]
(venv3131) markbyrne@Marks-MacBook-Air-2 programming % cat x.py
import collections.abc
(venv3131) markbyrne@Marks-MacBook-Air-2 programming % python -V
Python 3.13.1
(venv3131) markbyrne@Marks-MacBook-Air-2 programming % python -m pylint x.py
************* Module x
x.py:1:0: C0114: Missing module docstring (missing-module-docstring)
x.py:1:0: W0611: Unused import collections.abc (unused-import)
------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
(venv3131) markbyrne@Marks-MacBook-Air-2 programming % |
reproducible on my end
with the following:
|
Thanks. By chance is anyone testing on linux locally? If it wasn't clear, I have doubts that astroid 3.3.6 fixed anything. |
I have linux but didn't find an easy way to install 3.13.1 yet. |
i got the error testing with astroid 3.3.6 environment is WSL2, Ubuntu 20.04.6 LTS if it helps |
Here you can see my failed GitHub action due to the error: https://github.com/Torom/BotLi/actions/runs/12241011421/job/34145142509
|
Thanks, our own actions are failing too, however I'm doubtful we can work on it until we have a contributor who can debug it locally. |
With https://github.com/pyenv/pyenv it is very easy to install any Python version, including 3.13.1. |
Thank you @Torom ! I managed to fix my issue with |
All right, I can reproduce the
Switching to
I'm wondering if the race condition fixed in the initial issue is bypassing our astroid brain mechanism, but this is just intuition. Let me know if there's any particular test/debug I could do Jacob, I'll be able to dig into this in ~= 20 hours. |
Wonderful. I'd sniff around |
python-3.13.1 broke compatibility with pylint. Revert this one the pylint issue [1] is fixed. [1] pylint-dev/pylint#10112 [2] pylint-dev/astroid#2656
The bug is: pylint-dev/pylint#10112 Fortunately, collections.abc is used only once, in the Ansible plugin, for type checking.
The bug is: pylint-dev/pylint#10112 Fortunately, collections.abc is used only once, in the Ansible plugin, for type checking.
python-3.13.1 broke compatibility with pylint. Revert this one the pylint issue [1] is fixed. [1] pylint-dev/pylint#10112 [2] pylint-dev/astroid#2656
Fix for If anybody who is running into this issue could try to test out the |
That's a workaround for pylint-dev/pylint#10112. Also, properly filter out linting for "schedule" event.
Bug description
Configuration
Command used
Pylint output
Expected behavior
Not seeing the Unable to import 'collections.abc' (import-error)
Other messages are due to the tiny example
likely due to
python/cpython@d46d291
Pylint version
OS / Environment
tested with github actions using
Ubuntu
22.04.5
LTS
Additional dependencies
The text was updated successfully, but these errors were encountered: