[Ac] ImportError: No module named gtk
Marcin Krzyzanowski
krzak at hakore.com
Tue Jan 18 17:12:15 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
>
>
> a zrób tak:
>
> $ cp /usr/lib/blog_applet.py /tmp
> $ python /tmp/blog_applet.py
w /tmp zaczyna działać, więc o co chodzi ?
--
Marcin Krzyżanowski
More information about the pld-devel-en
mailing list