Non-programmer needs help with PyGTK-2.0.0

Holger Türk htx1 at gmx.de
Fri May 28 05:47:02 EDT 2004



Mark Mitchell wrote:
> I have a program written in python that tells me it requires PyGTK, so I
> DLed, ./configure, make, make install and the process seems to go ok.  Some
> errors but the process finishes so I assumed they weren't fatal errors.

It often complains about missing functions, or something.
It compiles though, so I assume, it's built completely.

> 
> So now I attempt to run my python program and I get;
> $ gccp.py
> Traceback (most recent call last):
>   File "./gccp.py", line 9, in ?
>     import pygtk
> ImportError: No module named pygtk
> 
> I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other
> information would be helpful.

Most probably, pygtk is installed in a directory where python
cannot find it (i.e. the wrong directory). So setting PYTHONPATH
may help. If not:

Did you get python from a Slackware package?

Where's the python standard library?
in /usr/lib/python?.? or /usr/local/lib/python?.? ?

Where did it install pygtk?
/usr/lib/python?.?/site-packages or /usr/local/lib/python?.?/site-packages ?

What's your --prefix for ./configure ?

Greetings,

Holger




More information about the Python-list mailing list