Bug#591145: ImportError: cannot import name GObject
Kevin Mitchell
kevmitch at math.sfu.ca
Sat Jul 31 23:08:17 UTC 2010
Package: python-gtk2
Version: 2.17.0-3
Severity: normal
I get the following error message when importing the main gtk module
>>> import gtk
** 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
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/usr/lib/pymodules/python2.6/gtk-2.0/gi/__init__.py in <module>()
25 # Force loading the GObject typelib so we have available the wrappers for
26 # base classes such as GInitiallyUnowned
---> 27 from gi.repository import GObject
28
29
ImportError: cannot import name GObject
>>>
It looks first of all like there are some not so bad deprecation warnings, but then this GObject import crashes and burns.
Things (both deluge and matplotlib) continue to function as expected after this, but its a little disturbing to see these messages every time they start up.
Kevin
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'testing'), (400, 'stable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34.1.002 (SMP w/2 CPU cores; PREEMPT)
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-gtk2 depends on:
ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libcairo2 1.8.10-4 The Cairo 2D vector graphics libra
ii libfontconfig1 2.8.0-2.1 generic font configuration library
ii libfreetype6 2.4.0-2 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.24.1-1 The GLib library of C routines
ii libgtk2.0-0 2.20.1-1 The GTK+ graphical user interface
ii libpango1.0-0 1.28.1-1 Layout and rendering of internatio
ii python 2.6.5-11 interactive high-level object-orie
ii python-cairo [python2.6-cairo 1.8.8-1+b1 Python bindings for the Cairo vect
ii python-gobject [python2.6-gob 2.21.4-1 Python bindings for the GObject li
ii python-numpy [python2.6-numpy 1:1.4.1-4 Numerical Python adds a fast array
ii python-support 1.0.9 automated rebuilding support for P
pn python2.5-cairo <none> (no description available)
pn python2.5-gobject <none> (no description available)
pn python2.5-numpy <none> (no description available)
python-gtk2 recommends no packages.
Versions of packages python-gtk2 suggests:
pn python-gtk2-doc <none> (no description available)
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list