🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4990

Bug#1154361: xhtml2pdf: FTBFS: FAILED tests/test_document.py::DocumentTest::test_document_background_image

#4990
From: Santiago Vila
Date: Wed, 18 Nov 2026 18:10
42 lines
3755 bytes
Package: src:xhtml2pdf
Version: 0.2.17+dfsg-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/202611/

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:xhtml2pdf, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
E       pypdf.errors.DeprecationError: Calling `PageObject.replace_contents()` for pages not assigned to a writer is deprecated and has been removed in pypdf 7.0.0. Attach the page to the writer first or use `PdfWriter(clone_from=...)` directly. The existing approach has proved being unreliable.

/usr/lib/python3/dist-packages/pypdf/_utils.py:470: DeprecationError
=========================== short test summary info ============================
FAILED tests/test_document.py::DocumentTest::test_document_background_image
FAILED tests/test_document.py::DocumentTest::test_document_background_image_not_on_all_pages
================= 2 failed, 168 passed, 2 deselected in 1.06s ==================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_xhtml2pdf/build; python3.14 -m pytest -k 'not test_document_cannot_identify_image and not test_document_with_broken_image'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.15 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID: <O0SgA-cJsU-113@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Santiago Vila <sanvila@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154361: xhtml2pdf: FTBFS: FAILED tests/test_document.py::DocumentTest::test_document_background_image
Date: Wed, 18 Nov 2026 19:10:04 +0100
Message-ID: <O0SgA-cJsU-113@gated-at.bofh.it>
X-Original-To: Debian BTS <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 18 18:03:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Santiago Vila <sanvila@debian.org>, 1154361@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 1154361
X-Debian-Pr-Package: src:xhtml2pdf
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: xhtml2pdf
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003370
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 18 Nov 2026 18:01:20 +0000
X-Original-Message-ID: <E1xTjyC-001yge-1b@paradis.debian.org>