genalog icon indicating copy to clipboard operation
genalog copied to clipboard

genalog does not work with newer versions of weasyprint

Open pedromb opened this issue 4 years ago • 2 comments

Newer versions of weasyprint (53.x) removed their dependency on cairo and do not support PNG exports anymore (see Kozea/WeasyPrint#1232 and https://www.courtbouillon.org/blog/00004-weasyprint-without-cairo-what-s-different)

This breaks some parts of the genalog code, specifically the following methods are affected (as far as I have seen) https://github.com/microsoft/genalog/blob/b8b9fbabdde5855e8bcc9db025e78cc619e15cd1/genalog/generation/document.py#L97 https://github.com/microsoft/genalog/blob/b8b9fbabdde5855e8bcc9db025e78cc619e15cd1/genalog/generation/document.py#L127

Maybe some warning should be added to the documentation regarding this and what is the plan moving forward.

Thank you :D

pedromb avatar Sep 22 '21 09:09 pedromb

Thanks for pointing that out! Will keep this in mind as we proceed. If you mind me asking, is there a feature you are looking for in using the latest release of weasyprint?

laserprec avatar Sep 29 '21 16:09 laserprec

The easiest way to design HTML layouts right now is using the CSS grid layout, however weasyprint does not currently supports it (not even in the latest release as of now). However, its on the milestones for version 54 (see here). I think this is a must have for genalog.

pedromb avatar Sep 30 '21 12:09 pedromb