Package: pylint
Version: 2.17.4-1
Severity: grave
Justification: renders package unusable
pylint dies when given anything, try with the simple program "a = 1", se
stacktrace below.
Downgrading python3-astroid from 3.0.2-1 to 2.15.6-1 fixes the problem.
I'm not sure if the problem lies in pylint or astroid so feel
free to move this report to python3-astroid if needed. :-)
-----
Traceback (most recent call last):
File "/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pylint/__init__.py", line 36, in
run_pylint
PylintRun(argv or sys.argv[1:])
File "/usr/lib/python3/dist-packages/pylint/lint/run.py", line 157, in
__init__
linter.load_default_plugins()
File "/usr/lib/python3/dist-packages/pylint/lint/pylinter.py", line 369, in
load_default_plugins
checkers.initialize(self)
File "/usr/lib/python3/dist-packages/pylint/checkers/__init__.py", line 136,
in initialize
register_plugins(linter, __path__[0])
File "/usr/lib/python3/dist-packages/pylint/utils/utils.py", line 204, in
register_plugins
module = modutils.load_module_from_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/astroid/modutils.py", line 235, in
load_module_from_file
return load_module_from_modpath(modpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/astroid/modutils.py", line 220, in
load_module_from_modpath
return load_module_from_name(".".join(parts))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/astroid/modutils.py", line 194, in
load_module_from_name
module = importlib.import_module(dotted_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File
"/usr/lib/python3/dist-packages/pylint/checkers/refactoring/__init__.py", line
16, in <module>
from pylint.checkers.refactoring.refactoring_checker import
RefactoringChecker
File
"/usr/lib/python3/dist-packages/pylint/checkers/refactoring/refactoring_checker.py",
line 36, in <module>
nodes.TryExcept, nodes.TryFinally, nodes.While, nodes.For, nodes.If
^^^^^^^^^^^^^^^
AttributeError: module 'astroid.nodes' has no attribute 'TryExcept'
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-5-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages pylint depends on:
ii python3 3.11.6-1
ii python3-astroid 3.0.2-1
ii python3-dill 0.3.7-1
ii python3-isort 5.6.4-1
ii python3-logilab-common 1.9.8-1
ii python3-mccabe 0.7.0-1
ii python3-platformdirs 4.1.0-1
ii python3-setuptools 68.1.2-2
ii python3-tomli 2.0.1-2
ii python3-tomlkit 0.12.3-1
ii python3-typing-extensions 4.7.1-2
Versions of packages pylint recommends:
ii python3-tk 3.11.5-1
Versions of packages pylint suggests:
pn pylint-doc <none>
-- no debconf information