Re: [PyOpenGL-Users] import error when program frozen with cx_Freeze
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2009-11-09 23:50:38
|
Jef Mangelschots wrote:
> in reference to a previous email I sent about glitInit() throwing an
> exception when run a frozen Python program on Windows 7, ...
>
> when I freeze and run the program on XP, I get the following exception
> thrown:
> I think I need to import something specific but can't figure out what:
> It runs fine in interpreted mode.
...
> ImportError: ('No module named lists',
> <OpenGL.converters.CallFuncPyConverter object at 0x00EFB730>)
You're missing the array-format plugins for lists (likely also for
arrays, strings, etceteras). You'll also likely be missing the platform
plugin. In OpenGL.__init__ you'll find the definitions for the standard
plug-ins, you can, if you like, import those modules explicitly in your
script.
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
|