[wxPython-users] py2exe, wxPython & zipextimporter error
Werner F. Bruhin
werner.bruhin at free.fr
Fri Feb 2 00:51:42 PST 2007
Hi,
ejohnso9 at earthlink.net wrote:
> I am off to sort of a rough start trying to use py2exe to build a
> wxPython GUI and distribute it as a single Windows executable. Running
> the build seems to go OK, but when attempting to run the resulting
> executable, I get the following error (put into a logfile by the exe):
>
>
> C:\Python24\Lib\site-packages\py2exe\samples\singlefile\gui\dist\test_wx.exe\zipextimporter.py:82: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or activly maintained. Please switch to the wx package as soon as possible.
>
something is still using "from wx import *" instead of using the new
namespace e.g. "import wx".
> ...
>
> But when the build is run, there are several things in the dist
> directory, including msvcr71.dll. That is because of licensing issues
> with Microsoft? Are there other options to explicitly direct py2exe to
> link msvcr71.dll into the EXE?
>
I never tried the new bundle stuff to try to get everything into one
file. You might want to check the py2exe list on gmane (I see you are
on to that one already ;-) ).
> ...
> still leaves these files in the dist directory, so I'm not clear on
> exactly what they are or why they are not linked into the EXE if they
> are required.
>
> 02/01/2007 01:19p 15,872 foo.exe
> 02/01/2007 01:19p 2,191,370 library.zip
> 03/16/2006 03:19p 348,160 MSVCR71.dll
> 10/18/2006 08:18a 4,608 w9xpopen.exe
>
>
Surprised to see library.zip, I am sure one of the bundle options allows
you to include that into the exe. The w9xpopen.exe is I believe only
needed for Windows 9x and the msvcr71.dll needs to probably be shipped
next to the exe.
Werner
More information about the wxpython-users
mailing list