[PyOpenGL-Users] Problems importing OpenGL under Python2.3
Brought to you by:
mcfletch
From: John F M. Jr <jo...@jo...> - 2004-02-01 04:54:02
|
Earlier I posted a message stating that I had difficulties importing OpenGL and that the problem resided in GL__init___.pyd I believe I found the problem. Specifically, PyOpenGL depends on numarray, not Numeric (numpy). If you run from a console you will see this error: $ /cygdrive/c/Python23/python Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import OpenGL Fatal Python error: Can't import module 'numarray.libnumarray' If you are using a Python GUI such as IDLE, it will only give you a runtime error. Once I installed numarray-0.8, I could import OpenGL just fine. Please update you're documentation to indicate this dependency change. Or at the very least, change the name of the executable from: PyOpenGL-2.0.1.07.py2.3-numpy23.exe <http://prdownloads.sourceforge.net/pyopengl/PyOpenGL-2.0.1.07.py2.3-numpy23.exe?download> to PyOpenGL-2.0.1.07.py2.3-numarray0.8.exe Other than this small dependency problem, thank you very much for making OpenGL work under python. John =:-> |