Mike Conley wrote:
I am having a problem building an executable with py2exe that imports wx.lib.iewin. The setup program hangs and goes to 99% CPU utilization while trying to resolve required modules. I also posted on the py2exe list to see if I can get help there.
I suspect that I need to include some module in the build but don't know what that would be. Following this in a debugger looks like the code is recursively trying to resolve something.
I read a thread on this group from last year that discussed problems running the compiled .exe, but I can't even get that far.
Python version: 2.5
Wx version: 2.8.9.2 (msw-unicode)
OS: Windows XPHere is source for a test file and setup file that will hang at
running py2exe *** searching for required modules ***# --- tst_importie.py
import wx
print wx.version() # 2.8.9.2 (msw-unicode)
import wx.lib.iewin as iewin# --- setup file
from distutils.core import setup
import py2exe
setup(console=['tst_importie.py'])--
Mike Conley
Just for fun, try replacing
import wx.lib.iewin as iewin
with
import wx.lib.iewin_old as iewin
I had some issues with the newer one a couple of months ago, but I stupidly didn't bother documenting what those issues were. Anyway, at the time I went with the old version and it worked great. Still does.
I bundled it up into an executable using Andrea's GUI2Exe and I didn't have to do any fancy imports in my setup.py file...