touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #07262
[Bug 1327417] Re: gi.repository module broken - many objects not exported
This is hardly a bug in g-i, most likely a failed upgrade? E. g.
software-center has a strict dependency on gir1.2-gtk-3.0 which provides
"Gtk". Do you have that package installed?
** Changed in: gobject-introspection (Ubuntu)
Status: New => Incomplete
** Package changed: gobject-introspection (Ubuntu) => ubuntu
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gobject-introspection in
Ubuntu.
https://bugs.launchpad.net/bugs/1327417
Title:
gi.repository module broken - many objects not exported
Status in Ubuntu:
Incomplete
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/software-center", line 25, in <module>
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/apport/apport-gtk", line 16, in <module>
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(getattr(gi.repository,i)))
('GLib', ' ', <class 'gi.module.DynamicModule'>)
('GObject', ' ', <class 'gi.module.DynamicModule'>)
('__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-1.0-1
libgirepository-1.0-1:
Installed: 1.40.0-1ubuntu0.1
Candidate: 1.40.0-1ubuntu0.1
Version table:
*** 1.40.0-1ubuntu0.1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.40.0-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1327417/+subscriptions