On Tue, 09 Dec 2025 21:56:08 +0100 "Alex Schroeder"
<[email protected]> wrote:
A few days ago weasyprint was able to create a PDF from my HTML file but today,
right after an update,
it failed with the following error:
weasyprint Kinetic-Energy.html Kinetic-Energy.pdf
Traceback (most recent call last):
File "/usr/bin/weasyprint", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/lib/python3/dist-packages/weasyprint/__main__.py", line 183, in
main
html.write_pdf(output, **options)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/weasyprint/__init__.py", line 259, in
write_pdf
self.render(font_config, counter_style, **options)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.write_pdf(target, zoom, finisher, **options))
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/weasyprint/document.py", line 400, in
write_pdf
pdf = generate_pdf(self, target, zoom, **options)
File "/usr/lib/python3/dist-packages/weasyprint/pdf/__init__.py", line 166,
in generate_pdf
stream.transform(d=-1, f=(page.height * scale))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/weasyprint/pdf/stream.py", line 246, in
transform
super().transform(a, b, c, d, e, f)
^^^^^^^^^^^^^^^^^
AttributeError: 'super' object has no attribute 'transform'
I'm also affected by this.
Versions of packages weasyprint depends on:
[...]
ii python3-pydyf 0.12.1-1
[...]
Downgrading python3-pydyf to 0.11.0-5 restores functionality.
As of now (with up-to-date testing), are there working uses of
weasyprint? If not, this bug should be at least serious IMHO.
I see that a new upstream version of weasyprint is available; maybe
upgrading it fixes the issue?
Cheers,
--
Stéphane