gi.repository module broken - many objects not exported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Both `software-center` and `ubuntu-bug` fail to start because of a failed import statement, all starting with the following: `from gi.repository import <something>`. The offending error messages for each package:
-------
$ software-center
ERROR:root:Could not find any typelib for Gtk
Traceback (most recent call last):
File "/usr/bin/
from gi.repository import Gtk, GObject
ImportError: cannot import name Gtk
-------
$ ubuntu-bug software-center
ERROR:root:Could not find any typelib for Wnck
ERROR:root:Could not find any typelib for GdkX11
ERROR:root:Could not find any typelib for Gdk
Traceback (most recent call last):
File "/usr/share/
from gi.repository import GObject, GLib, Wnck, GdkX11, Gdk
ImportError: cannot import name 'Wnck'
-------
Here's the output I got from the following Python REPL commands:
>>> import gi.repository
>>> dir(gi.repository)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'absolute_import']
>>> for i in dir(gi.repository): print(i," ",type(
('GLib', ' ', <class 'gi.module.
('GObject', ' ', <class 'gi.module.
('__builtins__', ' ', <type 'dict'>)
('__doc__', ' ', <type 'NoneType'>)
('__file__', ' ', <type 'str'>)
('__name__', ' ', <type 'str'>)
('__package__', ' ', <type 'str'>)
('__path__', ' ', <type 'list'>)
('absolute_import', ' ', <type 'instance'>)
The reason I'm filing against this package is because of it being a common dependency.
Some necessary info:
$ lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
$ apt-cache policy libgirepository
libgirepository
Installed: 1.40.0-1ubuntu0.1
Candidate: 1.40.0-1ubuntu0.1
Version table:
*** 1.40.0-1ubuntu0.1 0
500 http://
100 /var/lib/
1.40.0-1 0
500 http://
It also somehow messes with GEdit as well...