-
-
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
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 |
I dug a little, it seems there's just no working finders (or meta finder) at all in Not sure when / if the brain should take over before that or not. |
Watch out, did you test |
Just in case it helps, here is when it happens for one of our projects, all from https://github.com/zhmcclient/python-zhmcclient/actions/runs/12216477009
When re-running the failed jobs today, it used astroid 3.3.6, and the results are:
On my local macOS, I have Python 3.13.0 (latest from Homebrew) so I cannot reproduce it there. |
The change in Python 3.13.1 is that Update: It seems I am a bit behind compared to what you already discovered. Please ignore the noise :-) |
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: