diff --git a/gramps/plugins/docgen/cairodoc.py b/gramps/plugins/docgen/cairodoc.py index dcd6e4772..4185d73a3 100644 --- a/gramps/plugins/docgen/cairodoc.py +++ b/gramps/plugins/docgen/cairodoc.py @@ -35,6 +35,9 @@ import logging # GTK modules # #------------------------------------------------------------------------- +import gi +gi.require_version('Pango', '1.0') +gi.require_version('PangoCairo', '1.0') from gi.repository import Pango, PangoCairo import cairo