gi.repository module broken - many objects not exported

Bug #1327417 reported by Isiah Meadows
8
This bug affects 1 person
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/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

Tags: trusty
Revision history for this message
Isiah Meadows (impinball) wrote :

It also somehow messes with GEdit as well...

tags: added: trusty
Revision history for this message
Isiah Meadows (impinball) wrote :

Specifically a plugin of it

Revision history for this message
Martin Pitt (pitti) wrote :

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
affects: gobject-introspection (Ubuntu) → ubuntu
Revision history for this message
Isiah Meadows (impinball) wrote :

I don't have this problem anymore.

Changed in ubuntu:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.