Beginner Python OpenGL difficulties

jg.campbell.ng at gmail.com jg.campbell.ng at gmail.com
Sun May 28 12:20:56 EDT 2006


I'm beginning learning Python and OpenGL in Python.

Python fine. But difficulties with OpenGL; presumably with the
installation of OpenGL.

OS = Linux FC5.

Python program gl_test.py:

from OpenGL.GLUT import *
from OpenGL.GLU import *
from OpenGL.GL import *

name = "Hello, World"
height = 400
etc.

jc at localhost~/etc/python>$ python2 gl_test.py

Traceback (most recent call last):
  File "gl_test.py", line 1, in ?
    from OpenGL.GLUT import *
ImportError: No module named OpenGL.GLUT

jc at localhost~/etc/python>$ echo $PYTHONPATH
/usr/lib/python2.2/site-packages/OpenGL

jc at localhost/usr/lib/python2.2/site-packages/OpenGL>$ ll
total 1076
drwxr-xr-x 13 root root   4096 May 28 15:17 Demo/
drwxr-xr-x  3 root root   4096 May 28 15:17 doc/
drwxr-xr-x 25 root root   4096 May 28 15:17 GL/
-rwxr-xr-x  1 root root 624927 Jan  2  2005 GLE.so*
drwxr-xr-x  4 root root   4096 May 28 15:17 GLU/
-rwxr-xr-x  1 root root 312612 Jan  2  2005 GLUT.so*
drwxr-xr-x  6 root root   4096 May 28 15:17 GLX/
-rw-r--r--  1 root root    868 Mar 12  2004 __init__.py
-rw-r--r--  1 root root   1466 Jan  2  2005 __init__.pyc
etc ...

Any suggestions.

TIA,

Jon C.




More information about the Python-list mailing list