cx_Freezing PyOpenGL applications
Alejandro Segovia <[email protected]>
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAAXrc9Nby4XP6YWoeWEPY-kfM18bAdJs+dpFO3ExRGKHEj+Bsg@mail.gmail.com> |
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/[email protected]/msg00220.html. I just needed to add a couple of additional imports. Well, I hope this helps anyone. Best, Alejandro.- -- http://alejandrosegovia.net ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users