Public bug reported:

$ weasyprint 'http://www.example.com' out.pdf

WARNING: Ignored `width:60vw` at 1:22, invalid value.
WARNING: Ignored `margin:15vh auto` at 1:33, invalid value.
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'


This seems to be related to this:

https://github.com/Kozea/WeasyPrint/issues/2620


and the problem, if I understand rightly, is that the weasyprint package 
(installed with apt) has a dependency on an older version of pydyf. 

The recommendation is that weasyprint 62.3 is broken, and that Ubuntu should 
package 64.0 or higher.
The debian version is currently v67.0  
https://packages.debian.org/sid/all/weasyprint/download

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: weasyprint 62.3-1build1
ProcVersionSignature: Ubuntu 6.19.0-9.9-generic 6.19.5
Uname: Linux 6.19.0-9-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Fri Mar 13 03:19:55 2026
InstallationDate: Installed on 2024-04-29 (682 days ago)
InstallationMedia: Ubuntu-MATE 24.04 LTS "Noble Numbat" - Release amd64 
(20240424)
PackageArchitecture: all
SourcePackage: weasyprint
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: weasyprint (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144068

Title:
  weasyprint crashes  - broken package in resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/weasyprint/+bug/2144068/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to