Bug#1041344: AttributeError: module 'pyflakes.messages' has no attribute 'RedefinedInListComp'

2023-07-19 Thread Ludovic Rousseau

Hello,

I propose a fix in 
https://salsa.debian.org/python-team/packages/pylama/-/merge_requests/3




Bug#1041344: AttributeError: module 'pyflakes.messages' has no attribute 'RedefinedInListComp'

2023-07-17 Thread Ludovic Rousseau
Package: pylama
Version: 7.4.3-5
Severity: important

Dear Maintainer,

I installed pylama and I get this error:

$ pylama
Traceback (most recent call last):
  File "/usr/bin/pylama", line 33, in 
sys.exit(load_entry_point('pylama==7.4.3', 'console_scripts', 'pylama')())
 ^^
  File "/usr/bin/pylama", line 25, in importlib_load_entry_point
return next(matches).load()
   
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
 
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1149, in _find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/pylama/main.py", line 8, in 
from .config import parse_options, CURDIR, setup_logger
  File "/usr/lib/python3/dist-packages/pylama/config.py", line 12, in 
from .lint.extensions import LINTERS
  File "/usr/lib/python3/dist-packages/pylama/lint/extensions.py", line 26, in 

from pylama.lint.pylama_pyflakes import Linter
  File "/usr/lib/python3/dist-packages/pylama/lint/pylama_pyflakes.py", line 
10, in 
checker.messages.RedefinedInListComp.message = "W0621 list comprehension 
redefines %r from line %r"

AttributeError: module 'pyflakes.messages' has no attribute 
'RedefinedInListComp'


I see that the Debian version of the software is 7.4.3. This version was
released unstream in Sept 2017.
The current upstream version is 8.4.1 released in Aug 2022.

The current upstream file pylama/lint/pylama_pyflakes.py is very
different from
/usr/lib/python3/dist-packages/pylama/lint/pylama_pyflakes.py provided
by the Debian package.

Maybe it is time for a new upstream upload?
Do you need help for that?
I do not find that pylama is an orphaned Debian package.

Regards,

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-10-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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 pylama depends on:
ii  python3 3.11.2-1+b1
ii  python3-pylama  7.4.3-5

pylama recommends no packages.

pylama suggests no packages.

-- no debconf information