After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772678 - AttributeError: 'gi.repository.GLib' object has no attribute 'log_set_handler' on CentOS7
AttributeError: 'gi.repository.GLib' object has no attribute 'log_set_handler...
Status: RESOLVED FIXED
Product: meld
Classification: Other
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: meld-maint
meld-maint
Depends on:
Blocks:
 
 
Reported: 2016-10-10 09:02 UTC by Thorsten Leemhuis
Modified: 2016-10-15 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thorsten Leemhuis 2016-10-10 09:02:24 UTC
Trying to start meld 3.16.3 on CentOS7 results in this error msg:

Traceback (most recent call last):
  • File "/usr/bin/meld", line 281 in <module>
    setup_glib_logging()
  • File "/usr/bin/meld", line 264 in setup_glib_logging
    GLib.log_set_handler(log_domain, level_flag, log_adapter, None)
  • File "/usr/lib64/python2.7/site-packages/gi/module.py", line 320 in __getattr__
    return getattr(self._introspection_module, name)
  • File "/usr/lib64/python2.7/site-packages/gi/module.py", line 139 in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'log_set_handler'

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
Comment 1 Vasily Galkin 2016-10-12 10:02:20 UTC
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.
Comment 2 Kai Willadsen 2016-10-15 20:12:02 UTC
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.