diff --git a/gramps/plugins/importer/importgedcom.py b/gramps/plugins/importer/importgedcom.py index 03a0acd03a3..8b87cef0476 100644 --- a/gramps/plugins/importer/importgedcom.py +++ b/gramps/plugins/importer/importgedcom.py @@ -39,7 +39,6 @@ _ = glocale.translation.gettext from gramps.gen.errors import DbError, GedcomError -from gramps.gui.glade import Glade from gramps.plugins.lib.libmixin import DbMixin from gramps.plugins.lib import libgedcom from gramps.gen.utils.libformatting import ImportInfo @@ -98,6 +97,7 @@ def importData(database, filename, user): return if not gramps and ansel and user.uistate: + from gramps.gui.glade import Glade top = Glade() code = top.get_object("codeset") code.set_active(0) diff --git a/gramps/plugins/importer/importprogen.py b/gramps/plugins/importer/importprogen.py index 71ef1e55728..2aa2f48831c 100644 --- a/gramps/plugins/importer/importprogen.py +++ b/gramps/plugins/importer/importprogen.py @@ -26,6 +26,8 @@ # # ------------------------------------------------------------------------- import os, time +import gi +gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Gdk # ------------------------------------------------------------------------