Edinburgh-Genome-Foundry / pdf_reports

:closed_book: Python library and CSS theme to generate PDF reports from HTML/Pug
https://edinburgh-genome-foundry.github.io/pdf_reports/
MIT License
225 stars 40 forks source link

Pdf reports not working in ubuntu #17

Closed rose-ramasamy closed 2 years ago

rose-ramasamy commented 3 years ago

Hi team,

I am trying to use the weasyprint pdf reports and the library is not loading properly in ubuntu.

When I run my python program I am getting the following error.

OSError: no library called "cairo" was found no library called "libcairo-2" was found cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory

pdf_report_error

veghp commented 3 years ago

hi, PDF reports depends on weasyprint. As the error says, a dependency of weasyprint, Cairo, hasn't been installed. Have you installed it according to the instructions at: https://weasyprint.readthedocs.io/en/stable/install.html#linux