Package Details: python-weasyprint 51-1

Git Clone URL: https://aur.archlinux.org/python-weasyprint.git (read-only, click to copy)
Package Base: python-weasyprint
Description: Converts web documents (HTML, CSS, SVG, ...) to PDF.
Upstream URL: http://weasyprint.org/
Licenses: BSD
Submitter: SimonSapin
Maintainer: cinatic
Last Packager: cinatic
Votes: 11
Popularity: 0.000021
First Submitted: 2012-03-01 16:12
Last Updated: 2020-02-07 14:25

Latest Comments

1 2 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/init.py", line 3251, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 3234, in _call_aside f(args, *kwargs) File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 583, in _build_master ws.require(requires) File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", 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 "setup.py", line 23, in <module>
    setup()
File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 121, in setup
    dist.parse_config_files()
File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 705, in parse_config_files
    ignore_option_errors=ignore_option_errors)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 120, in parse_configuration
    meta.parse()
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 425, in parse
    section_parser_method(section_options)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 398, in parse_section
    self[name] = value
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 183, in __setitem__
    value = parser(value)
File "/usr/lib/python3.7/site-packages/setuptools/config.py", 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().
    Aborting...
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 https://bugs.archlinux.org/task/60125.

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.