From 8a6da237376b7107e9a135a50f328fa9b5807dca Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 24 Jan 2013 08:45:00 +0000 Subject: [PATCH] 6288: crash: no attribute 'require_version' - better fix svn: r21207 --- gramps/gui/grampsgui.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps/gui/grampsgui.py b/gramps/gui/grampsgui.py index 14f63d633..587248a66 100644 --- a/gramps/gui/grampsgui.py +++ b/gramps/gui/grampsgui.py @@ -56,10 +56,13 @@ PYGOBJ_ERR = False try: #import gnome introspection, part of pygobject import gi - giversion = gi.version_info + giversion = gi.require_version except: - PYGOBJ_ERR = True - + print(_("Your version of gi (gnome-instrospection) seems to be too old. " + "You need a version which has the function 'require_version' " + "to start Gramps")) + sys.exit(0) + if not PYGOBJ_ERR: try: from gi.repository import GObject