RE: [PyOpenGL-Users] installation (?) problem on irix646
Brought to you by:
mcfletch
From: Tarn W. B. <twb...@ma...> - 2001-09-24 16:38:23
|
| I just installed python2.1.1 and pyOpenGL2.0.0.44 on IRIX646 (octane, | Irix 6.5.11 ) and everything seemed to work smoothly. However I cannot run | the example programs in OpenGLContext (tests) like spincube.py. | I always get the error message: | | File | "/usr/local/lib/python2.1/site-packages/OpenGLContext/glutcontext.py", | line 55, in setupCallbacks glutKeyboardUpFunc(self.glutOnKeyUp) | NameError: global name 'glutKeyboardUpFunc' is not defined glutKeyboardUpFunc is GLUT 3.7 specific. You probably have an older version of GLUT. To check this run the script "site-packages/OpenGL/scripts/info.py". It will output a file "PyOpenGL_info.html" Look in the GLUT section for the API version entry. If it is less than 0xd than you have an older version of GLUT. You don't have to have 3.7 to run PyOpenGL. PyOpenGL will adjust the Python binding for whatever version you have, but apparently OpenGLContext needs 3.7. Note to Mike: OpenGLContext should probably check for 3.7 if there isn't a graceful fallback, i.e. ----------------- from OpenGL.GLUT import __api_version__ if __api_version__ < 0xd: print "need 3.7" sys.exit(1) ----------------- for future reference: 0x1=1.0, 0x2=2.0, 0x5=3.0, 0x7=3.1, 0x9=3.4, 0xb=3.6, 0xd=3.7 thanks, Tarn |