Package: python3-pkg-resources Version: 18.7-1 Severity: important An example of such a file can be found in python3-dialog (the Description contains UTF-8 encoded non-breaking spaces), but I am sure there are others.
The failure traceback looks as follows (from trying to run an unrelated package's setup.py): Traceback (most recent call last): File "setup.py", line 17, in <module> from setuptools.command.test import test as TestCommand File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 12, in <module> from setuptools.extension import Extension File "/usr/lib/python3/dist-packages/setuptools/extension.py", line 8, in <module> from .dist import _get_unpatched File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 19, in <module> import pkg_resources File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3144, in <module> @_call_aside File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3130, in _call_aside f(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3157, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 649, in _build_master ws = cls() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 642, in __init__ self.add_entry(entry) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 698, in add_entry for dist in find_distributions(entry, True): File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2136, in find_on_path path_item, entry, metadata, precedence=DEVELOP_DIST File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2519, in from_location version = cls._version_from_metadata(dist_path) or version File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2842, in _version_from_metadata return _version_from_file(strm) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2483, in _version_from_file line = next(iter(version_lines), '') File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3559: ordinal not in range(128) I thought this might be some locale issue, but LANG is set to a UTF-8 locale, so it's not that. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_ZA.utf8, LC_CTYPE=en_ZA.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3-pkg-resources depends on: pn python3:any <none> python3-pkg-resources recommends no packages. Versions of packages python3-pkg-resources suggests: ii python3-setuptools 18.7-1 -- no debconf information