#1143875 pdfposter: fails to work with python 3.13

#1143875#5
Date:
2026-08-07 20:13:18 UTC
From:
To:
Dear Maintainer,

the version of pdfposter included in Debian trixie seems to be incompatible
with the default Python 3.13 version

steps to reproduce the issue

- download a sample PDF
  $ curl -O https://www.debian.org/releases/trixie/release-notes.en.pdf

- try to convert the first page to two A4 sheets
  $ pdfposter -f 1 -l 1 -p 2x1a4 release-notes.en.pdf sample_a3.pdf

- it fails with
  ...
  File "/usr/share/pdfposter/pdftools/pdfposter/__init__.py", line 257, in
_scale_pdf_page
    content = ContentStream(page["/Contents"].get_object(), None)
  File "/usr/lib/python3/dist-packages/pypdf/generic/_data_structures.py", line
1198, in __init__
    stream_data = stream.get_data()
  File "/usr/lib/python3/dist-packages/pypdf/generic/_data_structures.py", line
1418, in get_data
    new_data.write(operator)
    ~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'

- the PKG-INFO syas the max supported Python version is 3.10
  $ pkginfo --json /usr/share/pdfposter/pdftools.pdfposter-0.8.1.egg-info/ \
    | jq '.classifiers | map(select(startswith("Programming Language")))'

- following pdfposter changelog support of Python 3.11 was added with version
0.9
https://pdfposter.readthedocs.io/en/stable/Changes.html
  0.9 (2025-07-22)
  Add support for Python 3.11, 3.12 and 3.13. Drop support for Python 3.6.

Please consider to amend the package to make it usable in Debian trixie.

kind regards
Frank

#1143875#10
Date:
2026-08-10 09:26:17 UTC
From:
To:
I've checked that this issue is fixed in the version currently in
testing (0.9.1-2), which works with both python 3.13 and 3.14 and
updated the metadata.

I haven't however triaged the issue under stable, nor started work on
seeing whether making a stable update for it is feasible (yet? I'm not
sure I'll have time to do it, sorry).