-
-
Notifications
You must be signed in to change notification settings - Fork 275
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.9.1 breaks pylint with missing __init__.py: F0010: error while code parsing: Unable to load file __init__.py #1327
Comments
I can't seem to reproduce this in my |
@interifter Which version of |
Right, |
My apologies... I updated the repro steps with a critical missed detail: But I verified that either with, or without, Also, I never have specified the However, this isn't the first time the issue has been observed. |
Full env info:
|
I confirm the bug and i'm able to reproduce it with
|
Bisected and this is the faulty commit: |
Fix in #1333, no time to write tests yet so if somebody has any good ideas: please let me know! |
@interifter Fixed and released with |
@DanielNoord I had the incorrect steps to reproduce when I initially filed the bug, so that likely would prevent you, or anyone else, from being able to :) |
Steps to reproduce
cd root_dir
python -m venv venv
venv/Scripts/activate
pip install pylint astroid==2.9.1
# I also repro'd on the latest, 2.9.2pylint src/project
# Updated frompylint src
Current behavior
Fails with
src\project\__init__.py:1:0: F0010: error while code parsing: Unable to load file src\project\__init__.py:
Expected behavior
Does not fail with error.
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.9.1
python 3.9.1
pylint 2.12.2
This issue has been observed with astroid
2.9.1
and2.9.2
The text was updated successfully, but these errors were encountered: