_opengl mystery
aya
aya at waena.edu
Thu Feb 3 01:29:24 EST 2000
Hi Pythonamians,
About 1 hour ago I took a look at Python for the first time. I installed
all the binaries and modules, and, as expected, none of the demos ran. But
at least they all barf on the same error:
<<<<<
Traceback (innermost last):
File "./jw.py", line 7, in ?
from OpenGL.Tk import *
File "/usr/lib/python1.5/site-packages/OpenGL/Tk/__init__.py", line 9, in
?
from OpenGL.GL import *
File "/usr/lib/python1.5/site-packages/OpenGL/GL/__init__.py", line 7, in
?
from _opengl import *
ImportError: No module named _opengl
>>>>>
and in the file /usr/lib/python1.5/site-packages/OpenGL/GL/__init__.py.....
<<<<<
import OpenGL.shared
import OpenGL
if OpenGL._numeric:
from _opengl_num import *
from openglutil_num import *
else:
from _opengl import *
from openglutil import *
>>>>>
So. my question is:
1) Why would this module import another module that doesn't exist?
2) Where can I get these modules (either the numeric or the _opengl). I
have installed
python-doc-html-1.5.2-1.noarch.rpm
python-opengl-1.5.5-2.i386.rpm
python-imaging-1.0b1-3.i386.rpm
python-tkinter-1.5.2-2.i386.rpm
python-imaging-_tkinter-1.0b1-3.i386.rpm
and all the supporting libs, but none of these have _opengl in them
3) Am I correct in assuming that the file in question is called
"_opengl.py"?
When I do a 'locate _opengl' all I get is
/usr/lib/python1.5/site-packages/OpenGL/shared/linux2/_opengl_nummodule.so
/usr/lib/python1.5/site-packages/OpenGL/shared/linux2/_openglmodule.so
4) is that _opengl_nummodule.so the numeric module for python? If so, why
does "if OpenGL._numeric:" fail in the file
"/usr/lib/python1.5/site-packages/OpenGL/GL/__init__.py"?
Thank in advance for putting up these newbie questions
-aya
More information about the Python-list
mailing list