Package: pylint
Version: 1.9.4-1
Severity: important

Hi there,

pylint depends on python-astroid >= 1.4.5, but this doesn't seem to be
strict enough. With my frankenstein system (mostly stable, with some
packages from sid), running "pylint" gets me the attached traceback,
which ends with

  AttributeError: 'module' object has no attribute 'extract_node'

Searching for the error message found me this bug report:

  https://github.com/PyCQA/pylint/issues/1270

which I think implies that the problem should be fixed by upgrading
python-astroid to 1.5.0. I just upgraded mine locally to 1.6.5-3
(which is the version currently in sid) and everything now works
again.

This won't cause problems for people tracking unstable (or the next
release) for all packages, but is an issue if a user has pinned most
packages to stable and is trying to pull newer versions of (say) just
some Python dev packages.

The "correct" fix is probably to add a dependency on version 1.5.0 of
python-astroid, but I don't know whether there is any other feature we
require that appeared between 1.5.0 and 1.6.5. It might be easier just
to depend on 1.6.5.

All the best,

Rupert


-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (400, 'unstable'), 
(350, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pylint depends on:
ii  python                                2.7.13-2
ii  python-astroid                        1.4.9-1
ii  python-backports.functools-lru-cache  1.3-1
ii  python-configparser                   3.3.0r2-2
ii  python-isort                          4.2.5+ds1-2+deb9u1
ii  python-logilab-common                 1.3.0-1
ii  python-mccabe                         0.5.3-1
ii  python-setuptools                     33.1.1-1
ii  python-singledispatch                 3.4.0.3-2
ii  python-six                            1.10.0-3
ii  python2.7                             2.7.13-2+deb9u3

Versions of packages pylint recommends:
ii  python-tk  2.7.13-1

pylint suggests no packages.

-- no debconf information

Reply via email to