🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #1448

Bug#1151723: fpdf2: FTBFS: E assert [b'%PDF-1.3',...1 0 obj', ...] == [b'%PDF-1.3',...1 0 obj', ...]

#1448
From: Santiago Vila
Date: Fri, 23 Oct 2026 12:30
90 lines
7262 bytes
Package: src:fpdf2
Version: 2.8.9-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:fpdf2, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
                # to avoid .assertSequenceEqual to take forever to finish, that itself calls difflib.ndiff,
                # that has cubic complexity from this comment by Tim Peters: https://bugs.python.org/issue6931#msg223459
                actual_lines = subst_streams_with_hashes(actual_lines)
                expected_lines = subst_streams_with_hashes(expected_lines)
>           assert actual_lines == expected_lines
E           assert [b'%PDF-1.3',...1 0 obj', ...] == [b'%PDF-1.3',...1 0 obj', ...]
E             
E             At index 99 diff: b"\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2}\xc0\xa2~\xc0\xa2~\xc0\xa2}\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2}\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa2~\xc0\xa...
E             
E             ...Full output truncated (93558 lines hidden), use '-vv' to show

test/conftest.py:172: AssertionError
=============================== warnings summary ===============================
test/image/test_load_image.py::test_svg_image_per_call_policy_override_applies_to_nested_resources
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_load_image.py:363: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    pdf.image(

test/image/test_vector_image.py::test_svg_image_no_viewbox
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:44: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg")

test/image/test_vector_image.py::test_svg_image_with_custom_width_and_no_viewbox
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:74: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg", w=60)

test/image/test_vector_image.py::test_svg_image_with_custom_size_and_no_viewbox
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:105: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg", x=50, y=50, w=30, h=60)

test/image/test_vector_image.py::test_svg_image_style_inherited_from_fpdf
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:139: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    pdf.image(

test/image/test_vector_image.py::test_svg_image_from_bytesio
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:152: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    pdf.image(

test/image/test_vector_image.py::test_svg_image_from_bytes
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/test/image/test_vector_image.py:165: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
    pdf.image(

test/text/test_multi_cell.py::test_multi_cell_j_paragraphs
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build/fpdf/fpdf.py:261: UserWarning: Dimensions for page format A5 were fixed in release 2.8.5
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.14.8-final-0 ________________

Coverage XML written to file coverage.xml
=========================== short test summary info ============================
FAILED test/image/test_full_page_image.py::test_image_with_explicit_dimensions
= 1 failed, 1779 passed, 16 skipped, 1 xfailed, 8 warnings in 84.85s (0:01:24) =
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fpdf2/build; python3.14 -m pytest test
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=2 returned exit code 13
make[1]: *** [debian/rules:12: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID: <NRmzg-7omJ-31@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Santiago Vila <sanvila@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1151723: fpdf2: FTBFS: E           assert [b'%PDF-1.3',...1 0 obj', ...] == [b'%PDF-1.3',...1 0 obj', ...]
Date: Fri, 23 Oct 2026 14:30:02 +0200
Message-ID: <NRmzg-7omJ-31@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Fri Oct 23 12:21:33 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Santiago Vila <sanvila@debian.org>, 1151723@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 1151723
X-Debian-Pr-Package: src:fpdf2
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: fpdf2
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/835662
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 90
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 23 Oct 2026 12:20:34 +0000
X-Original-Message-ID: <E1xKEGA-004qsv-1v@paradis.debian.org>