Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing libpangocairo dependency #508

Merged
merged 1 commit into from Sep 19, 2017
Merged

Add missing libpangocairo dependency #508

merged 1 commit into from Sep 19, 2017

Conversation

@jonashaag
Copy link
Contributor

@jonashaag jonashaag commented Sep 19, 2017

Without this, you'll get

OSError: cannot load library pangocairo-1.0: pangocairo-1.0: cannot open shared object file: No such file or directory.
Additionally, ctypes.util.find_library() did not manage to locate a library called 'pangocairo-1.0'
@liZe
Copy link
Member

@liZe liZe commented Sep 19, 2017

Thank you! PangoCairo seems to be provided by Pango with other distributions / OSes.

@liZe liZe merged commit 3f4a2eb into Kozea:master Sep 19, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@liZe liZe added this to the v0.41 milestone Sep 19, 2017
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Oct 9, 2017
Version 0.41
------------

Released on 2017-10-05.

WeasyPrint now depends on pdfrw >= 0.4.

New features:

* `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_:
  Support page marks and bleed.

Bug fixes:

* `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_:
  Don't crash on unsupported image-resolution values.
* `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_:
  Fix @font-face use with write_* methods.
* `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_:
  Improve readability of _select_source function.
* `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_:
  Use CSS prefixes as recommanded by the CSSWG.
* `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_:
  Fix rendering problems and crashes when using @font-face.
* `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_:
  Try to break pages after a block before trying to break inside it.
* `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_:
  Fix and test corner cases about named pages.

Documentation:

* `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_:
  Add missing libpangocairo dependency for Debian and Ubuntu.
* `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_:
  Add documentation on logged rendering steps.
@geographika
Copy link

@geographika geographika commented Oct 13, 2017

Just to note this is also the case on Windows for 0.41

OSError: cannot load library pangocairo-1.0: error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pangocairo-1.0'

Is there an additional step to add to http://weasyprint.readthedocs.io/en/stable/install.html#windows ?

@liZe
Copy link
Member

@liZe liZe commented Oct 13, 2017

Is there an additional step to add to http://weasyprint.readthedocs.io/en/stable/install.html#windows ?

pangocairo is included in pango and supposed to be compiled when cairo is available. Both gtk2-runtime and gtk3-runtime have pango and cairo included, I don't see why they wouldn't include pangocairo. Could you check that it's included (or not) in your Gtk+ install?

@geographika
Copy link

@geographika geographika commented Oct 13, 2017

@liZe - it does appear to be there - there is a libpangocairo-1.0-0.dll file in GTK3-Runtime Win64\bin
I'll do a few more tests to check it is not something in my environment. Rolling back to 0.4.0 does work though with the same GTK files.

@geographika
Copy link

@geographika geographika commented Oct 13, 2017

@liZe - apologies. I ran through the installation on a clean Windows install and it works fine with 0.4.1, please ignore the above!

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Oct 22, 2017
Version 0.41
------------

Released on 2017-10-05.

WeasyPrint now depends on pdfrw >= 0.4.

New features:

* `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_:
  Support page marks and bleed.

Bug fixes:

* `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_:
  Don't crash on unsupported image-resolution values.
* `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_:
  Fix @font-face use with write_* methods.
* `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_:
  Improve readability of _select_source function.
* `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_:
  Use CSS prefixes as recommanded by the CSSWG.
* `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_:
  Fix rendering problems and crashes when using @font-face.
* `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_:
  Try to break pages after a block before trying to break inside it.
* `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_:
  Fix and test corner cases about named pages.

Documentation:

* `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_:
  Add missing libpangocairo dependency for Debian and Ubuntu.
* `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_:
  Add documentation on logged rendering steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.