Re: [PyOpenGL-Users] import error when program frozen with cx_Freeze
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-11-10 03:17:05
|
Jef Mangelschots wrote: > I added: > > import OpenGL.arrays > import OpenGL.arrays.lists You'd need more than just those, the next error you see is the ctypes array plug-in, you'll also need the platform plugin. You can see all of the standard plugins in the OpenGL.__init__ module, here's what the imports would look like, assuming a Win32 platform is desired: import OpenGL.platform.win32 import OpenGL.arrays.nones import OpenGL.arrays.lists import OpenGL.arrays.strings import OpenGL.arrays.numbers import OpenGL.arrays.ctypesarrays import OpenGL.arrays.ctypesparameters import OpenGL.arrays.ctypespointers and if you use numpy: import OpenGL.arrays.numpymodule Keep in mind the caveat that the DLLs directory (which likely has your GLUT and GLE implementations) won't be picked up that way. HTH, Mike > However, that won't pick up the DLLS directory, which is where > GLUT and > GLE are installed. The "normal" path to py2exe-ing with PyOpenGL > is to > exclude the entire OpenGL directory and then add the unpacked > package to > your application's path. > > HTH, > Mike > > -- > ________________________________________________ > Mike C. Fletcher > Designer, VR Plumber, Coder > http://www.vrplumber.com > http://blog.vrplumber.com > > -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |