I have a Python 2.7.2 program with wxPython 2.8.12 and comtypes 0.6.2 dependencies on a win XP SP3 machine. I am using py2exe to produce windows distributables with the following setup:
setup(
options = {
"py2exe": {
"packages": ['wx.lib.pubsub']
}
},
windows = [
{
"script" : "entry.py",
}
],
data_files=[("bitmaps", ["../resources/icons/app_big.png",
"../resources/icons/app_medium.png",
"../resources/icons/app_small.png",
"../resources/icons/app_small_new.png",
"../resources/icons/app_small_bad.png",
"../resources/icons/cross_hover.png",
"../resources/icons/cross.png",
"../resources/icons/delete.png",
"../resources/icons/refresh.png",])]
)
I am also using the IEHtmlWindow control.
What is happening is that whenever I issue the command at the Python console, py2exe runs for a second with the following output:
running py2exe * searching for required modules *
and then appears to hang indefinitely until I press Ctr+z.
I have tracked down the problem to the import :
from wx.lib.iewin import IEHtmlWindow
which seems to be causing the problem.
Any suggestions?