Re: About PyOpenGL
trueli...@gmail.com wrote in news:f8099226-a953-4598-bfe2-61ee5772ce26 @l33g2000pri.googlegroups.com in comp.lang.python: Traceback (most recent call last): File test.py, line 36, in module main() File test.py, line 26, in main glutInit(sys.argv) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\GLUT\special.py, line 316, in glutInit _base_glutInit( ctypes.byref(count), holder ) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\GLUT\special.py, line 57, in _base_glutInit return __glutInitWithExit(pargc, argv, _exitfunc) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\platform\baseplatform.py, line 280, in __call__ self.__name__, self.__name__, OpenGL.error.NullFunctionError: Attempt to call an undefined function __glutInitWithExit, check for bool(__glutInitWithExit) before calling To get you code running I needed (in addition to the PyOpenGL download) to download. glut-3.7.6-bin.zip (117 KB) from http://www.xmission.com/~nate/glut.html and put the glut32.dll where python can find it, the readme says windows\system which worked, but sticking it in the same directory as python.exe (c:\python25 in your case) worked too. http://pyopengl.sourceforge.net/ http://pyopengl.sourceforge.net/documentation/installation.html Rob. -- http://www.victim-prime.dsl.pipex.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: About PyOpenGL
OpenGL.error.NullFunctionError: Attempt to call an undefined function __glutInitWithExit, check for bool(__glutInitWithExit) before calling Can anyone please tell me why? Your opengl program runs exactly as coded without error under Debian 5.0 Linux Lenny Perhaps a required library is missing from your opengl installation Sorry I couldn't provide more help -- Stanley C. Kitching Human Being Phoenix, Arizona -- http://mail.python.org/mailman/listinfo/python-list
Re: About PyOpenGL
On Jan 6, 12:58 am, Rob Williscroft r...@freenet.co.uk wrote: trueli...@gmail.com wrote in news:f8099226-a953-4598-bfe2-61ee5772ce26 @l33g2000pri.googlegroups.com in comp.lang.python: Traceback (most recent call last): File test.py, line 36, in module main() File test.py, line 26, in main glutInit(sys.argv) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\GLUT\special.py, line 316, in glutInit _base_glutInit( ctypes.byref(count), holder ) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\GLUT\special.py, line 57, in _base_glutInit return __glutInitWithExit(pargc, argv, _exitfunc) File c:\python25\lib\site-packages\PyOpenGL-3.0.0b8-py2.5-win32.egg \OpenGL\platform\baseplatform.py, line 280, in __call__ self.__name__, self.__name__, OpenGL.error.NullFunctionError: Attempt to call an undefined function __glutInitWithExit, check for bool(__glutInitWithExit) before calling To get you code running I needed (in addition to the PyOpenGL download) to download. glut-3.7.6-bin.zip (117 KB) fromhttp://www.xmission.com/~nate/glut.html and put the glut32.dll where python can find it, the readme says windows\system which worked, but sticking it in the same directory as python.exe (c:\python25 in your case) worked too. http://pyopengl.sourceforge.net/http://pyopengl.sourceforge.net/documentation/installation.html Rob. --http://www.victim-prime.dsl.pipex.com/ Yeah! It works now! Thank you very much! -- http://mail.python.org/mailman/listinfo/python-list