[gobolinux-users] Gpodder doesn't find python module "gtk"

Daniele Maccari gobo.users at gmail.com
Tue Mar 25 02:17:07 NZDT 2008


Thomas Queste wrote:
> Hello,
>
> After EyeD3, Gpodder is compiling fine.
> But at runtime, Gpodder hangs as it cannot find python's module for Gtk 
> : "ImportError: No module named gtk".
> I tried recompiling python and pygtk and I did a 'SymlinkProgram -f pygtk'
>
> --Complete output : -------------------------------------
> tom at Gobo /]gpodder
> Traceback (most recent call last):
>    File "/System/Links/Executables/gpodder", line 155, in <module>
>      sys.exit( main())
>    File "/System/Links/Executables/gpodder", line 113, in main
>      from gpodder import console
>    File 
> "Programs/GPodder/0.11.0/lib/python2.5/site-packages/gpodder/console.py", 
> line 20, in <module>
>      from gpodder import util
>    File 
> "Programs/GPodder/0.11.0/lib/python2.5/site-packages/gpodder/util.py", 
> line 35, in <module>
>      import gtk
> ImportError: No module named gtk
> ---------------------------------------------------------
>
> What should I look for ?
>
> Thanks,
>
> Thomas
>
>   
Afaik, you've got two choises:

1. edit the environment variable PYTHONPATH to contain the pygtk 
module's dir (it should be somewhere under 
/S/L/L/Python-<version>/site-packages)

2. add it to the file named "pygtk.pth" which you can find under the 
same dir as above. If you don't have it, just create it. Mine looks like 
this:

/System/Links/Libraries/python2.5/site-packages/gtk-2.0/
/System/Links/Libraries/python2.4/site-packages/gtk-2.0/
/System/Links/Libraries/python2.3/site-packages/gtk-2.0/

Bye



More information about the gobolinux-users mailing list