Your message dated Wed, 07 Nov 2018 18:19:22 +0000
with message-id <[email protected]>
and subject line Bug#912760: fixed in black 18.9b0-1-5
has caused the Debian Bug report #912760,
regarding black: Fails to install with SyntaxError: invalid syntax
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
912760: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912760
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: black
Source-Version: 18.9b0-1-5

We believe that the bug you reported is fixed in the latest version of
black, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Neil Williams <[email protected]> (supplier of updated black package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 07 Nov 2018 17:34:20 +0000
Source: black
Binary: black python-black-doc
Architecture: source all
Version: 18.9b0-1-5
Distribution: unstable
Urgency: medium
Maintainer: Neil Williams <[email protected]>
Changed-By: Neil Williams <[email protected]>
Description:
 black      - uncompromising Python code formatter (Python 3)
 python-black-doc - uncompromising Python code formatter (common documentation)
Closes: 912760
Changes:
 black (18.9b0-1-5) unstable; urgency=medium
 .
   * Bump minimum Python3 version to 3.6 (Closes: #912760)
Checksums-Sha1:
 797c36bd4e3545eb6c8913cbe0bdccf8e25ff4c4 1991 black_18.9b0-1-5.dsc
 f58865b346c0edb9a4f5692b2953711989057a6e 6420 black_18.9b0-1-5.debian.tar.xz
 8566bc8fc1d2cc3a3dabe44f8b184793d62dad64 75336 black_18.9b0-1-5_all.deb
 b9755e8063d1413493e0f6e691a0d0a9c3d2559b 7368 black_18.9b0-1-5_amd64.buildinfo
 153dc9dd20c9c301cd5b3cd08163bbacf56fab9e 273876 
python-black-doc_18.9b0-1-5_all.deb
Checksums-Sha256:
 33b55d8f5a9b40435cd4f40d399bb99cdb509f76fad074df2b034e0323bf6e51 1991 
black_18.9b0-1-5.dsc
 82a5ed9d9288342f9739f0ec76ffe0ece2e38d6f6160a74050aaf3732ea25bfc 6420 
black_18.9b0-1-5.debian.tar.xz
 c5732d9b079ef08efb29f3f6c82879f70ce67c8e8715a5f01fcda76018aee587 75336 
black_18.9b0-1-5_all.deb
 401156ae376788f500bd16e78d4f3e0c54c5320ea90e9f0fd7862a9e98ca320a 7368 
black_18.9b0-1-5_amd64.buildinfo
 722eade79c80e8d38d86d3b317e0eeb06204ef2f9c26fb8ffe27f6881ea39315 273876 
python-black-doc_18.9b0-1-5_all.deb
Files:
 49565ccc42dd5f59afd619b479bddab2 1991 python optional black_18.9b0-1-5.dsc
 8adc4f0819e7cae34d9a81d83bd33f13 6420 python optional 
black_18.9b0-1-5.debian.tar.xz
 755b81ec58bd1013ec396694fa5faede 75336 python optional black_18.9b0-1-5_all.deb
 323de8182112885d2fdf76e02ff556cd 7368 python optional 
black_18.9b0-1-5_amd64.buildinfo
 c6075a8f792ed177f799bf834ec20b8a 273876 doc optional 
python-black-doc_18.9b0-1-5_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEf3HB6ceOc10DYMbM8WfkPIFDtoIFAlvjJbQACgkQ8WfkPIFD
toJt9Q/9EYi+pfq/eXxVDJKnAOPE+EKEkuzaFIHr1lOvFfTTfav31Gl4brG/ifmv
Z3BL2pqlsFLBCt6Ow4OfIfXJEhWasr7tCXWpMTJ5cgZjq4NZkkR3uyDlUOlzTzCm
+TIcvqo2VmzIS33MD4L4eJBhVyr4Vb9LY5uM86yGENN+zBhLQPmweFFzzQ2G3ccV
o7SN3sGHpfKJ6M/+m/uSc1vaf3dV4E9EbfC43NNeyZMt2BNqfGJYZMllY6Y7fniI
+u1BBL9/T68YX32V7E72zmm6t0hw6JSgirCYCoA4BEzwBsCIjpBHkPNs1WiDRuZC
cJhwMP7pp59HVbHRNr3DukiR+Qi15DyhE+9CvxkrEXiiFVlQHdJqXylTV3ge9i77
uIhE77wfKAOXtBBv+vM1g3DLg4HWrRfRgeDne4gx98hDMwBROXzUkm5/T22vTocb
qup1AyAbYoye8rbRhDKYqLia9eCvU9GN8GqtrI+cNHfrcS4lJCN3DNRnqGLm0RTx
Ea1y7GtICOpP3AIIqq1ZoYSvzxjJoyUjcdzF+LDezbtb9bPRxRV+LOoouynxkbCl
p+0UkjXdEcgFYQela9B2E4iMCBwRjIEvqg79zV0FCxEG2RLRqV0iVCU2vZd8M0V8
Q32tgR2pkEd5SXj85QztsppGGgi3eq9VwXVNBgUFo6B/cbkN+8o=
=Ypb8
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to