[Python-modules-team] Bug#945214: python3-pip: pip3 list AttributeError: _version

Sebastien KALT skalt at throka.org
Thu Nov 21 09:36:27 GMT 2019


Package: python3-pip
Version: 18.1-5
Severity: grave
Justification: renders package unusable

Dear Maintainer,

I think I have this error on Debian Sid since the 6th of november and
python3.8 / python3.8-minimal / python3.8-stdlib install

$ pip3 list
Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-
any.whl/pkg_resources/__init__.py", line 2649, in version
    return self._version
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-
any.whl/pkg_resources/__init__.py", line 2756, in __getattr__
    raise AttributeError(attr)
AttributeError: _version

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line
143, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line
145, in run
    self.output_package_listing(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line
210, in output_package_listing
    data, header = format_for_columns(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line
276, in format_for_columns
    row = [proj.project_name, proj.version]
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-
any.whl/pkg_resources/__init__.py", line 2654, in version
    raise ValueError(tmpl % self.PKG_INFO, self)
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", testpath
[unknown version] (/usr/lib/python3/dist-packages))

But apt-get purge python3.8-stdlib python3.8-minimal python3.8 doesn't resolve
this problem, so it might be unrelated.

Regards,

Sébastien KALT




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (980, 'unstable'), (970, 'testing'), (960, 'stable'), (500, 'testing-debug'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-pip depends on:
ii  ca-certificates    20190110
ii  python-pip-whl     18.1-5
ii  python3            3.7.5-3
ii  python3-distutils  3.8.0-1

Versions of packages python3-pip recommends:
ii  build-essential     12.8
ii  python3-dev         3.7.5-3
ii  python3-setuptools  41.4.0-1
ii  python3-wheel       0.33.6-2

python3-pip suggests no packages.

-- no debconf information


More information about the Python-modules-team mailing list