Your message dated Mon, 12 Oct 2020 11:03:25 +0000
with message-id <e1krvbx-000a3i...@fasolo.debian.org>
and subject line Bug#970901: fixed in black 20.8b1-2
has caused the Debian Bug report #970901,
regarding black: cannot run, "ModuleNotFoundError: No module named 
'_black_version'"
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 ow...@bugs.debian.org
immediately.)


-- 
970901: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970901
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: black
Version: 20.8b1-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The new black package version 20.8b1-1 seems to be missing some files:

% black
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/black/__init__.py", line 63, in <module>
    from black._black_version import version as __version__
ModuleNotFoundError: No module named 'black._black_version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/black", line 33, in <module>
    sys.exit(load_entry_point('black==20.8b1', 'console_scripts', 'black')())
  File "/usr/bin/black", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/black/__init__.py", line 65, in <module>
    from _black_version import version as __version__
ModuleNotFoundError: No module named '_black_version'

Looking at the source, _black_version.py appears to be generated by the 
setup.py:
https://github.com/psf/black/blob/master/setup.py#L50-L53

Regards,


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages black depends on:
ii  python3                    3.8.2-3
ii  python3-appdirs            1.4.4-1
ii  python3-click              7.1.2-1
ii  python3-mypy-extensions    0.4.3-1
ii  python3-pathspec           0.8.0-1
ii  python3-pkg-resources      49.3.1-2
ii  python3-regex              0.1.20200714-1
ii  python3-toml               0.10.1-1
ii  python3-typed-ast          1.4.1-1+b1
ii  python3-typing-extensions  3.7.4.2-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: 20.8b1-2
Done: Chris Lamb <la...@debian.org>

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 970...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <la...@debian.org> (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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Mon, 12 Oct 2020 11:48:16 +0100
Source: black
Architecture: source
Version: 20.8b1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Chris Lamb <la...@debian.org>
Closes: 970901
Changes:
 black (20.8b1-2) unstable; urgency=medium
 .
   * Team upload.
   * Correct version handling to avoid "ModuleNotFoundError: No module named
     '_black_version'" error when loading. (Closes: #970901)
   * Ensure that a "black" binary exists before running the testsuite to avoid
     test_async_main test failure.
   * Don't specific maintainer-specific build directories in debian/gbp.conf.
   * Commit tarballs to pristine-tar branch.
Checksums-Sha1:
 0dadbfd0f780416aad0a78ecc3037d7cb2417800 2584 black_20.8b1-2.dsc
 2e126033d6985c3fbf32a902399991791a34e999 8332 black_20.8b1-2.debian.tar.xz
 ae0897cf449a31ccf2d12a42a28f75a9b826fffa 8031 black_20.8b1-2_amd64.buildinfo
Checksums-Sha256:
 7366fb99bd188737de0e4acc9030e6c35e91526d8dd30a61015160c4ff78da49 2584 
black_20.8b1-2.dsc
 aae9ba3ad8ae7691f6256ddf1015360ed88194d8e520e571e079ea4fc2ea68a1 8332 
black_20.8b1-2.debian.tar.xz
 13f7dfb1a8af1a0befcfe5d54ce7396329eb45cc7186520119d2503ba2e30612 8031 
black_20.8b1-2_amd64.buildinfo
Files:
 e284921f3d88ee974f9680afc2644f64 2584 python optional black_20.8b1-2.dsc
 9548417117f0dde56e0e18ea2ee55db2 8332 python optional 
black_20.8b1-2.debian.tar.xz
 2c541488895b69e239e57a7f56969904 8031 python optional 
black_20.8b1-2_amd64.buildinfo

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAl+ENkUACgkQHpU+J9Qx
HliBKg//R/aLEhG4TGbFT2n4GjrqMqU77zDFP4ca4S+PzHItxRYWcuw3+BFQZPwf
6/wkXX7gLY70W7hEG7h0YCwvIhvu1lyKv9pmXrNt5DbyeFt/uZ9ZDDTqmBkKOgKN
rYkUBNWaMZPlZlcVPjRIxv51wb7PW4NHp8Uf90jc6Af5Otx1n2XDSx7bDWQ8+L+c
ZUUkvGWpcT3JE+QFra9V9QDvBFDwF2i1gYELwkzInWLQ5xplhxcnO+W2KLKSUYGG
Wzjys6lj21GIFUpoILl62iEbhQ0TPyjEz+DXlOw0NRU5UkEBOVBlXEJr4uxeZYAw
O933fho/0Sd10zMnI6uvBzcYPn8o5BqUuxVnmSDWtsB7XGsfpFP2OJVpKmnlF+dD
px4gcFDicSUL7Ir/MCy24gAGnZeahk4VKl6eDNCYtecOcWDYfTh7iIfgibWrXnDg
5dyEPzBOIa2nV3hLaVlPw6bwUlIcSNtRUIU4BKD8/hZ9zPpKVDk5wyM2rsl5/mgd
Sg13PPLxrGaQOy7/T5UFUms2Fkbwrv4EXwFOIeWNidLMPPbauQmdMvMQSx10ifIO
/LdrhQS+HOK4/rYQpA7CTUj467hEp9MTic32JcBuYQZjYNtbUXTMlS2aXUmQjnZ8
0wUCEo2y5reiM2jn8PNs20tPRGJ/cwRUK6dyQOXdV7D8Pkf/1f4=
=rp0o
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to