Package Details: python-weasyprint 53.0-2

Git Clone URL: (read-only, click to copy)
Package Base: python-weasyprint
Description: Convert web documents (HTML, CSS, SVG, ...) to PDF
Upstream URL:
Licenses: BSD
Provides: weasyprint=53.0
Submitter: SimonSapin
Maintainer: alerque
Last Packager: alerque
Votes: 14
Popularity: 0.20
First Submitted: 2012-03-01 16:12
Last Updated: 2021-08-07 20:50

Dependencies (20)

Required by (11)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

frabjous commented on 2019-11-22 21:00

@cinatic Thanks. I had already tried reinstalling the package, but I guess it wasn't enough just to `yay -S python-weasyprint`. I had to do `yay -S python-weasyprint --rebuild`. Mentioning that here in case it helps anyone else.

cinatic commented on 2019-11-22 20:25

@frabjous you need to rebuild python packages as they won't automagically appear into new python3.8/site-packages

frabjous commented on 2019-11-22 18:17

Not sure if it's just me, but this is no longer working since the recent python rebuild. I get the following error:

Traceback (most recent call last): File "/usr/bin/weasyprint", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.8/site-packages/pkg_resources/", line 3251, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.8/site-packages/pkg_resources/", line 3234, in _call_aside f(args, *kwargs) File "/usr/lib/python3.8/site-packages/pkg_resources/", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.8/site-packages/pkg_resources/", line 583, in _build_master ws.require(requires) File "/usr/lib/python3.8/site-packages/pkg_resources/", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.8/site-packages/pkg_resources/", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'WeasyPrint==50' distribution was not found and is required by the application

ezacaria commented on 2019-08-23 06:47

I managed to build it today withouth problems, but then it seems to get stuck at runtime.

Perhaps the html page being converted has something which is not well supported by weasyprint. In any case, I found that the community package wkhtmltopdf worked on the same page. Site note: wkhtmltopdf did much better than the Firefox integrated pdf writer.

ymermoud commented on 2019-02-03 16:03

I'm getting and error message when installing

==> Validating source files with md5sums...
    v43.tar.gz ... Passed
==> Extracting sources...
-> Extracting v43.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
File "", line 23, in <module>
File "/usr/lib/python3.7/site-packages/setuptools/", line 145, in setup
    return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/", line 121, in setup
File "/usr/lib/python3.7/site-packages/setuptools/", line 705, in parse_config_files
File "/usr/lib/python3.7/site-packages/setuptools/", line 120, in parse_configuration
File "/usr/lib/python3.7/site-packages/setuptools/", line 425, in parse
File "/usr/lib/python3.7/site-packages/setuptools/", line 398, in parse_section
    self[name] = value
File "/usr/lib/python3.7/site-packages/setuptools/", line 183, in __setitem__
    value = parser(value)
File "/usr/lib/python3.7/site-packages/setuptools/", line 265, in parser
    'files are not accepted'.format(key))
ValueError: Only strings are accepted for the license field, files are not accepted
==> ERROR: A failure occurred in package().
The build failed.

cinatic commented on 2018-09-19 13:24

@yan12125 thanks for the hint, i removed the version check as an temporary workaround as it was quiet old anyhow

yan12125 commented on 2018-09-19 13:11

@alan1world: That's a bug of community/cairosvg. I've submitted

alan1world commented on 2018-09-17 18:03

Dependency needs to be updated as cairosvg has been moved to the community:

Replace python-cairosvg with community/cairosvg? [Y/n] :: removing python-cairosvg breaks dependency 'python-cairosvg>=0.4.1' required by python-weasyprint

mpnordland commented on 2018-03-30 15:16

python-tinycss is now python-tinycss2 in [community].

positron commented on 2017-12-20 07:53

Hi, pdfrw is in community and weasyprint needs it. Please add it to the dependencies.