GNOME Bugzilla – Bug 772678
AttributeError: 'gi.repository.GLib' object has no attribute 'log_set_handler' on CentOS7
Last modified: 2016-10-15 20:12:02 UTC
Trying to start meld 3.16.3 on CentOS7 results in this error msg: Traceback (most recent call last):
+ Trace 236733
setup_glib_logging()
GLib.log_set_handler(log_domain, level_flag, log_adapter, None)
return getattr(self._introspection_module, name)
self.__name__, name))
It might be a bug in glib, but the components in CentOS7 afaics are new enough for meld (at least according to its README file): $ rpm -q python gtk3 glib2 pygobject3 gtksourceview3 python-2.7.5-39.el7_2.x86_64 gtk3-3.14.13-16.el7.x86_64 glib2-2.42.2-5.el7.x86_64 pygobject3-3.14.0-3.el7.x86_64 gtksourceview3-3.14.3-1.el7.x86_6
It looks that gobject-introspection GLib.log_set_handler is not a wrapper around g_log_set_handler but around g_log_set_handler_full which was introduced in 2.46. g_log_set_handler has no gobject-introspection support at all due to resource releasing problem. So currently meld-3-16 branch doesn't work with glib < 2.46.
Yep, my bad. I had no intention of bumping the requirement like that. I've just silently caught the AttributeError in both the meld-3-16 branch and master, so this should now work fine on C7, best I know. Thanks for the bug report.