Bug#591715: pygtk: ImportError while importing _gtk

Bernd Zeimetz bzed at debian.org
Wed Aug 4 23:20:38 UTC 2010


Package: python-gtk2
Version: 2.17.0-3
Severity: important

This error happens with python2.5 and 2.6:

In [1]: from gtk 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

See https://bugs.launchpad.net/ubuntu/+source/apport/+bug/603919 for a bit of not really useful discussion of that bug.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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