The old way of importing GObject (>>> import gobject) has been removed in the latest versions of GObject, the last version supporting it was 2.28.6. The current recommended method is >>> from gi.repository import GObject