New task was created
Fix WeasyPrint import error
Created on Thursday 14 October 2021, 15:44
Back to task list-
ID1004851
-
ProjectMetabolism of Cities
-
StatusCompleted
-
PriorityMedium
-
TypeProgramming work
-
Assigned toPaul Hoekman
-
SubscribersGuus HoekmanPaul Hoekman
Description
When running sudo docker-compose build
, WeasyPrint will give an error:
web_1 | from . import views
web_1 | File "/src/core/views.py", line 36, in <module>
web_1 | from weasyprint.fonts import FontConfiguration
web_1 | ModuleNotFoundError: No module named 'weasyprint.fonts'
Related: https://github.com/Kozea/WeasyPrint/issues/1426
See line 2120 or search for from weasyprint import HTML, CSS
in views.py