Re: [PyOpenGL-Users] import error when program frozen with cx_Freeze
Brought to you by:
mcfletch
From: Dan H. <Dan...@no...> - 2009-11-09 19:32:32
|
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. [...] > module = __import__( ".".join(moduleName), {}, {}, moduleName) > ImportError: ('No module named lists', > <OpenGL.converters.CallFuncPyConverter object at 0x00EFB730>) > > > I have attached the source code. > I am running the following software: > Python 2.6.4 > PyOpenGL-3.0.1a3 > cx_Freeze-4.1.win32-py26 Hi Jef, I'm using py2exe rather than cx_Freeze, but I had similar traceback when trying to run my application frozen. The only way I could get PyOpenGL working when frozen with py2exe is to exclude the OpenGL module from the automatic dependency finder, and then copy over the entire contents of the OpenGL directory during the setup.py py2exe process. For more info, see: http://www.py2exe.org/index.cgi/PyOpenGL Dan |