Re: ImportError: No module named gtk



Hello

On Fedora pygtk2 provides the required gtk module for python.

On Tue, 2007-09-04 at 16:19 -0500, Austin W. Mlady wrote:
bash-3.1# 0launch -g
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/0launch-gui", line 47, in <module>
import gui
File
"/usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/gui.py",
line 1, in <module>
import gtk, os, gobject, sys
ImportError: No module named gtk


Above is what happens when I attempt to test if 0launch works. I am
on a standard slackware 12 install on a reiserfs file system using
fluxbox. I did install the latest version of pygobject, pygtk,
python. I receive this error on a couple of things, but I need
0launch to run properly.

If this helps here is pkg-config --list-all
<snip/>

This is a python module, and pkg-config is not of concern here :)

--
Ritesh Khadgaray
ॐ मणि पद्मे हूँ
Desktop LinuX N Stuff
Ph: +919970164885
Eat Right, Exercise, Die Anyway.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list


Relevant Pages

  • Re: Qt programming
    ... but the OS and environment is more develoed in ... > graphical option, that of the gimp toolkits, the gtk libraries. ... Python bindings to any of them ...
    (freebsd-questions)
  • [pygtk] ANNOUNCE: PyGTK 2.12.1
    ... I am pleased to announce version 2.12.1 of the Python bindings for GTK; ... This release includes various bug fixes, plugged memory leaks and a few new features. ... it can be used to write full featured Gnome applications. ...
    (comp.lang.python.announce)
  • What is Togl???
    ... that are shipped with that package (at /usr/share/doc/python- ... few pages that led me to the thought that I need to install some ... ii libgdk-pixbuf2 0.22.0-2.0.1 The GdkPixBuf image library, gtk+ 1.2 ... ii python-gtk 0.6.11-8 GTK support module for Python. ...
    (comp.lang.python)
  • Re: [SLE] SuSE 10.0 and Smart
    ... Welllll the latest gtk is installed. ... This may be because you are missing the python package that links to GTK. ... you do not have them on your install media. ... www.rhedadur.org.uk - Rhedeg berfau Cymraeg ...
    (SuSE)
  • Re: undefined symbol: PyUnicodeUCS2_FromUnicode
    ... > Daniel Dittmar wrote: ... Yet gtk is installed by rpm. ... PyUnicodeUCS2_FromUnicode is a function that belongs to the Python API. ... Perhaps it's best to ask on the PyGTK mailing list on how to install it on ...
    (comp.lang.python)