Missing packages required for WeasyPrint in frappe-worker
See original GitHub issueDescription of the issue
Image for frappe-worker
doesn’t have some packages required by weasyprint
package. Due to that when trying to start ERP-next site-creator
fails.
Context information
While using develop
branch site-creator
failed on importing weasyprint
with message of missing libcairo-2
package
Steps to reproduce the issue
- Checkout develop branch
- Copy
env-local
to.env
- Start project with docker-compose
- Logs of
site-creator
shows critical error on importingweasyprint
- Project isn’t configured and doesn’t work.
Solution
Add more packages in frappe-worker Dockerfile.
I had to add libcairo2 python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0 libpangocairo-1.0-0
but I’m not really familiar with weasyptint so that might be excessive.
Weasyprint documentation state https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#debian-11 that for debian only python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0
are needed but I was not able to run without explicit installation of libpangocairo
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
@vrslev true that. something like this:
inside of
apt install
should be better. It takes forever to check so might take a while.merged #537