Article View: linux.debian.bugs.rc
Article #323Bug#1150524: black: FTBFS: E AttributeError: attribute 'append_comments' of 'delimiter_split_env' undefined
From: Santiago Vila
Date: Sat, 10 Oct 2026 11:00
Date: Sat, 10 Oct 2026 11:00
61 lines
4835 bytes
4835 bytes
Package: src:black
Version: 26.10.0-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202610/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:black, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
src/black/linegen.py:1670: in delimiter_split
yield from append_comments(leaf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> def append_comments(leaf: Leaf) -> Iterator[Line]:
E AttributeError: attribute 'append_comments' of 'delimiter_split_env' undefined
src/black/linegen.py:1655: AttributeError
=========================== short test summary info ============================
FAILED tests/test_black.py::BlackTestCase::test_check_diff_use_together - Ass...
FAILED tests/test_black.py::BlackTestCase::test_expression_diff - AssertionEr...
FAILED tests/test_black.py::BlackTestCase::test_expression_diff_with_color - ...
FAILED tests/test_black.py::BlackTestCase::test_expression_ff - AttributeErro...
FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_py36 - Asser...
FAILED tests/test_black.py::BlackTestCase::test_pipe_force_py36 - AssertionEr...
FAILED tests/test_black.py::BlackTestCase::test_piping - AssertionError: 123 ...
FAILED tests/test_black.py::BlackTestCase::test_piping_diff - AssertionError:...
FAILED tests/test_black.py::BlackTestCase::test_piping_diff_with_color - Asse...
FAILED tests/test_black.py::BlackTestCase::test_python315 - AttributeError: a...
FAILED tests/test_black.py::BlackTestCase::test_python37 - AttributeError: at...
FAILED tests/test_black.py::BlackTestCase::test_root_logger_not_used_directly
FAILED tests/test_black.py::BlackTestCase::test_single_file_force_py36 - Asse...
FAILED tests/test_black.py::BlackTestCase::test_skip_magic_trailing_comma - A...
FAILED tests/test_format.py::test_line_ranges_line_by_line[basic] - Attribute...
FAILED tests/test_format.py::test_line_ranges_line_by_line[pattern_matching]
========== 16 failed, 197 passed, 37 skipped, 270 deselected in 2.68s ==========
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc or test_simple_format)"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=1 returned exit code 13
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID:
<NMCY1-4G07-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Santiago Vila <sanvila@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1150524: black: FTBFS: E AttributeError: attribute 'append_comments' of 'delimiter_split_env' undefined Date: Sat, 10 Oct 2026 13:00:01 +0200 Message-ID: <NMCY1-4G07-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sat Oct 10 10:57:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Santiago Vila <sanvila@debian.org>, 1150524@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: sanvila@debian.org, team+python@tracker.debian.org X-Debian-Pr-Message: report 1150524 X-Debian-Pr-Package: src:black X-Debian-Pr-Keywords: forky ftbfs sid X-Debian-Pr-Source: black X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834158 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 10 Oct 2026 10:55:21 +0000 X-Original-Message-ID: <E1xFUjZ-001Yxd-1U@paradis.debian.org>