Beginner Python OpenGL difficulties
jg.campbell.ng at gmail.com
jg.campbell.ng at gmail.com
Tue May 30 04:56:37 EDT 2006
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.
Many thanks,
Jon C.
More information about the Python-list
mailing list