Re: [wxpython-users] Py works, EXE doesn't here is stripped program, someone else verify please.
by Werner F. Bruhin other posts by this author
Jul 19 2008 9:25AM messages near this date
[wxpython-users] Py works, EXE doesn't here is stripped program, someone else verify please.
|
Re: [wxpython-users] Py works, EXE doesn't here is stripped program, someone else verify please.
Steve,
Steve Freedenburg wrote:
> I don't have a web site to hold the program, but here is what I did do.
>
> I stripped the splash screen, all the bmp files, icons, and everything
> else that is "fluff."
> So the file is just a python with no dependancies other than needing
> Python and wxPython
> and whatever other modules and libraries are shipped with Python and
> wxPython.
I gave it a go, but run into a few issues.
- tv.ico not included, no problem just used some other icon file
- if a config file is present but it includes an invalid path the
program throws an exception
- my default install of wxPython is Unicode, the pickling of the path
does not work (I think it is an encoding issue).
- setup.py was not included
I added these to the top of the file:
# -*- coding: iso-8859-1 -*-#
import wxversion
wxversion.select('2.8-ansi')
I think defining the file encoding is good practice and the other two
are to force it to run with the wxPython ANSI version - note that 2.8 is
the last wxPython ANSI version (IIRC), so you might want to byte the
bullet and move soonish over to the Unicode build.
After this I still get an exception to do with the config file reading.
If you haven't already solved your issues may I suggest that you copy
the minimal version to a folder on your machine and try to run it, when
it runs then either private copy me or send it to the list again (but
with the setup.py).
Werner
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Steve Freedenburg
Werner F. Bruhin
Steve Freedenburg
Steve Freedenburg
Steve Freedenburg
Werner F. Bruhin
Steve Freedenburg
Werner F. Bruhin
Steve Freedenburg
Tim Roberts
|