Bug#480741: [Debian-olpc-devel] python-gtk: ImportError: No module named cairo

Shaun Jackman sjackman at gmail.com
Tue May 13 04:16:11 UTC 2008


reassign 480741 python2.5
thanks

Thanks, Jonas. Reinstalling the package did fix the problem. I did,
however, have to reinstall *every* python package on my system. This
one-liner might come in handy to anyone else that gets bit by the same
bug.

sudo apt-get --reinstall install $(dpkg -l `apt p python` 2>/dev/null
|awk '{if ($1 == "ii") print $2}')

I'm reassigning this bug to python2.5. Although, I have no idea which
package and which version caused the bug.

Cheers,
Shaun

On Sun, May 11, 2008 at 2:14 PM, Jonas Smedegaard <dr at jones.dk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>  Hash: SHA1
>
>
>  On Sun, May 11, 2008 at 01:27:39PM -0700, Shaun Jackman wrote:
>
>  >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.
>
>  Try reinstalling python-gtk and python-cairo - I experienced something
>  similar with other Python libraries in the days right after the switch
>  to Python-2.5 (I suspect it was an error in python-support and/or
>  python-central which was fixed shortly after but might have caused
>  broken installations).
>
>
>  Please repost this email to the bugreport, and respond to both the
>  bugreport and the OLPC mailinglist.
>
>
>   - Jonas
>
>  - --
>  * Jonas Smedegaard - idealist og Internet-arkitekt
>  * Tlf.: +45 40843136  Website: http://dr.jones.dk/
>
>   - Enden er nær: http://www.shibumi.org/eoti.htm
>  -----BEGIN PGP SIGNATURE-----
>  Version: GnuPG v1.4.6 (GNU/Linux)
>
>  iD8DBQFIJ2HIn7DbMsAkQLgRAvCBAJ9IOjokBa/i1HzefO/IbNDFHHgQxgCgjct2
>  LcpzsSu0bvTZeaWY5S4+xVY=
>  =Nnjo
>  -----END PGP SIGNATURE-----
>


More information about the pkg-gnome-maintainers mailing list