Beginner Python OpenGL difficulties

Diez B. Roggisch deets at nospam.web.de
Tue May 30 08:40:37 EDT 2006


jg.campbell.ng at gmail.com wrote:

> 
> Mike C. Fletcher wrote:
>> jg.campbell.ng at gmail.com wrote:
>> > I'm beginning learning Python and OpenGL in Python.
>> >
> [...]
>> > ImportError: No module named OpenGL.GLUT
>> >
>> > jc at localhost~/etc/python>$ echo $PYTHONPATH
>> > /usr/lib/python2.2/site-packages/OpenGL
>> >
>> You should already have site-packages in your PythonPath.  You want the
>> directory *above* OpenGL in the path, not OpenGL itself.
> 
> Yes, tried that:
> 
> $ echo $PYTHONPATH
> /usr/lib/python2.2/site-packages/
> 
> and no improvement. Should there be a file or directory named GLUT* in
> /usr/lib/python2.2/site-packages/OpenGL/ ? All I can see are GL, GLU
> and GLX directories.
> 
>  I'm unsure why
>> you're running a Python 2.2 instance on a modern Linux.
> 
> jc at localhost~/etc/python>$ python2
> Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
> [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
> 
> The OpenGL stuff was from an RPM that I sound on the web.

Go compile it yourself then - the RPM seems to be for python2.2, but you run
2.4. That means more happened than just changing the PYTHONPATH - so don't
expect you come away so cheap :)

Diez 



More information about the Python-list mailing list