[wxPython-users] Problem packaging with py2exe
Werner F. Bruhin
werner.bruhin at free.fr
Thu Jun 21 08:55:41 PDT 2007
Hi Simon,
simon kagwe wrote:
> Hi,
> I have a wx program that i am trying to package with py2exe. I based my
> setup.py on the example that adds an Inno Setup installer. The exe installs
> correctly, but every time I run it, I get the following error in the log:
> Traceback (most recent call last):
> File "gui.py", line 1, in ?
> File "wx\__init__.pyo", line 45, in ?
> File "wx\_core.pyo", line 4, in ?
> File "wx\_core_.pyo", line 12, in ?
> File "wx\_core_.pyo", line 10, in __load
> ImportError: DLL load failed: The specified module could not be found.
>
You have a lot of "excludes" are you sure that they are all not needed?
I would start with not excluding anything and then add them back in.
> even if the program launches.
>
> Also, the program has a .ico file that is used for the app's icon and for the
> taskbar icons. It is placed in the same location in the exe, but when the
> program starts, I get an error dialog with the message:
> Can't load image from file c-get.ico: file does not exist.
>
Try this:
icon_resources = [(1, r"c-get.ico")],
> The manifest doen't seem to work too. When installed on an XP machine, the
> widgets like they're on Windows 2000.
>
Change this line from:
RT_MANIFEST = 32
to:
RT_MANIFEST = 24
Werner
More information about the wxpython-users
mailing list