6288: crash: no attribute 'require_version' - better fix
svn: r21207
This commit is contained in:
parent
3795974c6f
commit
8a6da23737
@ -56,10 +56,13 @@ PYGOBJ_ERR = False
|
|||||||
try:
|
try:
|
||||||
#import gnome introspection, part of pygobject
|
#import gnome introspection, part of pygobject
|
||||||
import gi
|
import gi
|
||||||
giversion = gi.version_info
|
giversion = gi.require_version
|
||||||
except:
|
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:
|
if not PYGOBJ_ERR:
|
||||||
try:
|
try:
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
|
Loading…
Reference in New Issue
Block a user