question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'weasyprint.fonts'

See original GitHub issue

I’m trying to use the weasyprint.fonts with no success, can anyone tell me where I’m going wrong?

Captura de tela de 2021-08-23 12-34-41 Captura de tela de 2021-08-23 12-33-26

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
grewn0uillecommented, Aug 23, 2021

Hello! The import has changed since v53. Now it’s from weasyprint.text.fonts import FontConfiguration.

Duplicate of #1419.

1reaction
grewn0uillecommented, Aug 27, 2021

Since v53, pango >= 1.44 is required. If your distribution doesn’t provide a recent version of pango, you can downgrade WeasyPrint to v52.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'weasyprint.fonts' · Issue #1419
I could not import weasyprint.fonts after clean pip install. ... ModuleNotFoundError: No module named 'weasyprint.fonts' #1419.
Read more >
ModuleNotFoundError: No module named 'weasyprint'
I have installed WeasyPrint==0.42.3 , but when I try to import it in Django, it raises the following error: ModuleNotFoundError: No module ......
Read more >
ModuleNotFoundError: No module named 'WeasyPrint'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'WeasyPrint' How to remove the ModuleN.
Read more >
weasyprint
WeasyPrint is a smart solution helping web developers to create PDF documents. It turns simple HTML pages into gorgeous statistical reports, invoices, ...
Read more >
ModuleNotFoundError: No module named 'weasyprint'
pip install WeasyPrint. ... modulenotfounderror: no module named 'weasyprint'. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found