Bug#590680: ImportError: cannot import name GObject
Torquil Macdonald Sørensen
torquil at gmail.com
Wed Jul 28 12:07:53 UTC 2010
Package: python-gobject
Version: 2.21.4-1
Severity: important
Hi!
I'm suspecting that python-gobject is responsible for a number of errors I have
gotten today (please correct me if Ḯ'm wrong). I updated the package today from
version 2.21.1-2 to version 2.21.4-1 and now these errors are appearing.
Also, a similar issue seems to have been solved in Fedora by an update of
python-gobject, as described in the links given below.
Description of error:
E.g. when using the program "reportbug", it prints to the screen:
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/gtk-2.0/gi/__init__.py", line 27, in <module>
from gi.repository import GObject
ImportError: cannot import name GObject
Also, my newly built exaile 0.3.2 package (source obtained from ubuntu) fails at startup with
a similar message.
Over at Fedora, this report was made:
https://bugzilla.redhat.com/show_bug.cgi?id=596392
and it seems it was solved due to an update of python-gobject, as described here:
https://bugzilla.redhat.com/show_bug.cgi?id=596571
Also, here is an Ubuntu bug that exhibits the same bug:
http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg2380676.html
reported against something called "pybootchartgui" which I cannot find in Debian.
I did find this, reported in ubuntu against the source package pygtk:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/604057
which seems to be the same error.
Hope this helps
Torquil Sørensen
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34.1 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-gobject depends on:
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libffi5 3.0.9-2 Foreign Function Interface library
ii libgirepository1.0-0 0.6.14-1+b1 Library for handling GObject intro
ii libglib2.0-0 2.24.1-1 The GLib library of C routines
ii python 2.6.5-10 interactive high-level object-orie
ii python-support 1.0.9 automated rebuilding support for P
Versions of packages python-gobject recommends:
pn python-gobject-cairo <none> (no description available)
Versions of packages python-gobject suggests:
pn python-gobject-dbg <none> (no description available)
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list