Hi Wayne,
Wayne Ellis wrote:
hi,
does anybody have any experience with the Py2exe module.
I'm trying to build a windows app using this tool and
the resulting build gives me the following error message
The following modules appear to be missing
["wx.BitmapFromImage", "wx.EmptyIcon"]
That is just a warning, it does not prevent the application created with py2exe from running. I have these two, plus stuff from mx. and matplotlib which give me warnings but have no problem with the generated exe.
my setup file looks like this :
setup(console=["main.py"],
data_files=[
("bitmaps",glob.glob("bitmaps\\*.*")),
("testdata",glob.glob("testdata\\*.txt")),
("scripts",glob.glob("scripts\\*.py")),
("",glob.glob("*.txt")),
("",glob.glob("*.vh")),
],
options = {"py2exe": {"packages": ["encodings"]}}
)
the addition of the options line was something I found through
a google search but it hasn't cured the problem.
I had to use options for e.g. matplotlib (pytz and matplotlib.numerix) as py2exe did not find all the stuff by itself, and it thinks that I use mySQL which I don't so my options section looks like this:
options = {"py2exe": {"compressed": 1,
"optimize": 2,
"packages": ["encodings", "kinterbasdb", "pytz", "matplotlib.numerix"],
"excludes": ["MySQLdb"]}
any clues appreciated
One thing you need to add to your data_files section, if you are on Python 2.4, is this dll "C:\Python24\msvcr71.dll", it needs to be in the same directory/folder as your application exe.
thanks
Wayne
Hope this helps
Werner
···
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org