Bug#590755: gtk's import tricks don't work

Ben Hutchings ben at decadent.org.uk
Thu Jul 29 02:19:44 UTC 2010


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

$ cat ~/tmp/test.py
import gtk
$ python ~/tmp/test.py
** 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

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (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-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-3  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