[Bug 1327417] [NEW] gi.repository module broken - many objects not exported

Isiah Meadows impinball at gmail.com
Fri Jun 6 20:55:36 UTC 2014


Public bug reported:

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

** Affects: gobject-introspection (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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 “gobject-introspection” package in Ubuntu:
  New

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/+source/gobject-introspection/+bug/1327417/+subscriptions



More information about the foundations-bugs mailing list