Bug#480741: python-gtk: ImportError: No module named cairo

Shaun Jackman sjackman at gmail.com
Sun May 11 20:27:39 UTC 2008


Package: python-gtk2
Version: 2.12.1-1
Severity: serious

Both sugar-emulator and pychess fail with the same GTK+/Cairo related message:
$ pychess
Traceback (most recent call last):
  File "/usr/games/pychess", line 9, in <module>
    import gtk, gtk.glade, gettext
  File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py",
line 48, in <module>
    from gtk import _gtk
ImportError: No module named cairo

I have both python-gtk and python-cairo installed. I recently upgraded
to python2.5.

Cheers,
Shaun

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (499, 'testing'), (498, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.23-rc3
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages python-gtk2 depends on:
ii  libatk1.0-0                   1.22.0-1   The ATK accessibility toolkit
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libcairo2                     1.4.14-1   The Cairo 2D vector graphics libra
ii  libglib2.0-0                  2.16.1-2   The GLib library of C routines
ii  libgtk2.0-0                   2.12.9-2   The GTK+ graphical user interface
ii  libpango1.0-0                 1.20.2-2   Layout and rendering of internatio
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-cairo [python2.5-cairo 1.4.12-1   Python bindings for the Cairo vect
ii  python-gobject [python2.5-gob 2.14.1-4   Python bindings for the GObject li
ii  python-numeric [python2.5-num 24.2-8.2   Numerical (matrix-oriented) Mathem
ii  python-support                0.7.7      automated rebuilding support for P
pn  python2.4-cairo               <none>     (no description available)
pn  python2.4-gobject             <none>     (no description available)
pn  python2.4-numeric             <none>     (no description available)

python-gtk2 recommends no packages.

-- no debconf information






More information about the pkg-gnome-maintainers mailing list