Package: black Version: 18.9b0-1-4 Severity: normal Dear Maintainer,
If I install black I get: $ sudo LANG=C apt install black Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: python-black-doc The following NEW packages will be installed: black 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/75.3 kB of archives. After this operation, 334 kB of additional disk space will be used. Selecting previously unselected package black. (Reading database ... 224706 files and directories currently installed.) Preparing to unpack .../black_18.9b0-1-4_all.deb ... Unpacking black (18.9b0-1-4) ... Setting up black (18.9b0-1-4) ... File "/usr/lib/python3/dist-packages/black.py", line 128 ) -> "FileMode": ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/blackd.py", line 31 black.out(f"blackd version {ver} listening on {bind_host} port {bind_port}") ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/blib2to3/pgen2/tokenize.py", line 123 **{f"{prefix}'''": single3prog for prefix in _strprefixes}, ^ SyntaxError: invalid syntax dpkg: error processing package black (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db (2.7.6.1-2) ... Errors were encountered while processing: black E: Sub-process /usr/bin/dpkg returned an error code (1) I also get the error if I run black alone: $ black Traceback (most recent call last): File "/usr/bin/black", line 11, in <module> load_entry_point('black==18.9b0', 'console_scripts', 'black')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2291, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2297, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3/dist-packages/black.py", line 128 ) -> "FileMode": ^ SyntaxError: invalid syntax Maybe black depends on a newer version of Python3 than 3.5.3? I have not tried to upgrade python3. >From https://pypi.org/project/black/ I read: " Black can be installed by running pip install black. It requires Python 3.6.0+ to run but you can reformat Python 2 code with it, too. " I suggest to update the package dependency on python3. Bye -- System Information: Debian Release: 9.5 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores) 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 black depends on: ii python3 3.5.3-1 ii python3-appdirs 1.4.0-3 ii python3-attr 16.3.0-1 ii python3-click 6.6-1 ii python3-pkg-resources 33.1.1-1 ii python3-toml 0.9.1-1 black recommends no packages. Versions of packages black suggests: pn python-black-doc <none> -- no debconf information