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 747717 - AttributeError: type object 'GdkEventType' has no attribute 'TOUCH_BEGIN'
AttributeError: type object 'GdkEventType' has no attribute 'TOUCH_BEGIN'
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
3.16.x
Other Linux
: Normal major
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-11 21:08 UTC by Catalin Hritcu
Modified: 2015-04-14 02:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Catalin Hritcu 2015-04-11 21:08:06 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):
  • File "/usr/lib/linuxmint/mintMenu/mintMenu.py", line 6 in <module>
    from gi.repository import Gtk, GdkPixbuf, Gdk, GObject
  • File "/usr/lib/python2.7/site-packages/gi/importer.py", line 159 in load_module
    dynamic_module = load_overrides(introspection_module)
  • File "/usr/lib/python2.7/site-packages/gi/overrides/__init__.py", line 111 in load_overrides
    override_mod = importlib.import_module('gi.overrides.' + namespace)
  • File "/usr/lib/python2.7/importlib/__init__.py", line 37 in import_module
    __import__(name)
  • File "/usr/lib/python2.7/site-packages/gi/overrides/Gdk.py", line 161 in <module>
    class Event(Gdk.Event):
  • File "/usr/lib/python2.7/site-packages/gi/overrides/Gdk.py", line 193 in Event
    Gdk.EventType.TOUCH_BEGIN: 'touch',
AttributeError: type object 'GdkEventType' has no attribute 'TOUCH_BEGIN'
```
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
Comment 1 Simon Feltman 2015-04-14 02:50:15 UTC
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.