Hey guys,

I just ran into some issues while attempting to cx_Freeze an application that uses PyOpenGL. The build process would execute to completion, but upon trying to run the generated executable, I would get a message stating that the "win32" module could not be found.

I'm posting the solution that worked for me, in case anyone ever runs into the same issue.

What I had to do was to add the following imports:

from OpenGL.GL import *
import OpenGL.platform.win32
import OpenGL.arrays.ctypesarrays
import OpenGL.arrays.numpymodule
import OpenGL.arrays.lists
import OpenGL.arrays.numbers
import OpenGL.arrays.formathandler
#import OpenGL.arrays.strings #Only if you use GLSL

I got the original idea from this thread: http://www.mail-archive.com/cx-freeze-users@lists.sourceforge.net/msg00220.html. I just needed to add a couple of additional imports.

Well, I hope this helps anyone.

Best,
Alejandro.-

--
http://alejandrosegovia.net