[wxPython-users] Problem packaging with py2exe
Tiller, Jason
jtiller at sjm.com
Thu Jun 21 13:46:47 PDT 2007
Hi, Simon, :)
I'm a pretty green wxPython user, but I ran into a similar issue which
stumped me for hours, so maybe my experience can help out.
On Thu, 21 Jun 2007, simon kagwe <simonkagwe at yahoo.com> wrote:
> 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.
I didn't get *exactly* the same error, but it did relate to being
unable to load a DLL at startup. Check that the target system has all
of the Microsoft DLLs required. Specifically, I had to put
MSVCP71.DLL in windows\system32. My predecessor also had to put
MSVCR71.DLL on a few systems to get past these load-time errors.
I used "Dependency Walker 2.2" to determine the required DLLs. I seem
to recall that DW highlighted the missing DLLs on the target system,
which greatly aided my debugging efforts. After copying the required
DLL, everything was hunky-dory.
Good luck, and I HTH,
---Jason
More information about the wxpython-users
mailing list