[PyOpenGL-Users] glutInit(sys.argv) crashes when program frozen with cx_Freeze on Windows 7
Brought to you by:
mcfletch
From: Jef M. <jef...@gm...> - 2009-11-09 09:12:16
|
When I run my test Python program interpreted, it runs fine. When I freeze that same program with cx_Freeze, it throws the following exception: Traceback (most recent call last): File "c:\python26\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec code in m.__dict__ File "bouncing.py", line 109, in <module> glutInit(sys.argv) File "c:\python26\lib\site-packages\OpenGL\GLUT\special.py", line 323, in glutInit _base_glutInit( ctypes.byref(count), holder ) TypeError: 'NoneType' object is not callable This is the program: import OpenGL.platform.win32 from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * import sys glutInit(sys.argv) I am using Windows 7 Has anyone seen this problem before ? |