Genalog is dependent on weasyprint. It uses the function write_image_surface() from Weasyprint.document.Document().
But this function has been removed by weasyprint on 19 april 2020. Therefore trying to run even the simplest example code provided by genalog causes issues and cannot be executed.