GNOME Bugzilla – Bug 747717
AttributeError: type object 'GdkEventType' has no attribute 'TOUCH_BEGIN'
Last modified: 2015-04-14 02:50:32 UTC
`mintmenu` broke after Arch updated the `python2-gobject` package from 3.14 to 3.16 yesterday. The message error is as follows: ``` $ mintmenu /usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:50: RuntimeWarning: You have imported the Gtk 2.0 module. Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail. As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0 warnings.warn(warn_msg, RuntimeWarning) Traceback (most recent call last):
+ Trace 234963
from gi.repository import Gtk, GdkPixbuf, Gdk, GObject
dynamic_module = load_overrides(introspection_module)
override_mod = importlib.import_module('gi.overrides.' + namespace)
__import__(name)
class Event(Gdk.Event):
Gdk.EventType.TOUCH_BEGIN: 'touch',
``` Manually downgrading `python2-gobject` to 3.14 is a temporary workaround, but a better solution would be appreciated. Just looking at the error message, doesn't seem `mintmenus` fault, but what do I know, so I also filed this against `mintmenu`: https://github.com/linuxmint/mintmenu/issues/130
Thanks for logging this. Fixed with: https://git.gnome.org/browse/pygobject/commit/?id=7291cb1 This is in version 3.16.1 which was just released.