[Ac] ImportError: No module named gtk
Marcin Krzyzanowski
krzak at hakore.com
Tue Jan 18 12:51:08 CET 2005
Użytkownik wrobell napisał:
> On Tue, Jan 18, 2005 at 12:06:06PM +0100, Marcin Krzyzanowski wrote:
>
>>Hi,
>>
>>where is gtk python module ?
>>
>>$ rpm -q python-pygtk-gtk python
>>python-pygtk-gtk-2.4.1-4
>>python-2.4-3
>>
>>
>>
>>$ /usr/lib/blog_applet.py
>>Traceback (most recent call last):
>> File "/usr/lib/blog_applet.py", line 5, in ?
>> import gtk
>>ImportError: No module named gtk
>>
>>#!/usr/bin/env python
>>import pygtk
>>pygtk.require('2.0')
>>import gtk
>
>
> What shows "import gtk" after "python -v"?
>
>>> import gtk
import gtk # directory /usr/lib/python2.4/site-packages/gtk-2.0/gtk
import gtk # precompiled from
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.pyc
dlopen("/usr/lib/python2.4/site-packages/gtk-2.0/gobject.so", 2);
import gobject # dynamically loaded from
/usr/lib/python2.4/site-packages/gtk-2.0/gobject.so
import gtk.keysyms # precompiled from
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/keysyms.pyc
dlopen("/usr/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so", 2);
import encodings.utf_8 # precompiled from
/usr/share/python2.4/encodings/utf_8.pyc
dlopen("/usr/lib/python2.4/site-packages/gtk-2.0/pango.so", 2);
import pango # dynamically loaded from
/usr/lib/python2.4/site-packages/gtk-2.0/pango.so
dlopen("/usr/lib/python2.4/site-packages/gtk-2.0/atk.so", 2);
import atk # dynamically loaded from
/usr/lib/python2.4/site-packages/gtk-2.0/atk.so
import gtk._gtk # dynamically loaded from
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/_gtk.so
--
Marcin Krzyżanowski
More information about the pld-devel-en
mailing list