First, I'm not sure whether the mentioned issue is a problem with py2exe, but I simply came acros it while trying py2exe 0.6.9 with pyton 2.6.
After installing py2exe for python 2.6 and simply trying the script (a wx app) and its setup script (working ok using py2exe on py 2.5) I got the error while converting to exe.
*** finding dlls needed ***
error: MSVCP90.dll: No such file or directory
Strangely (for me) in python26 directory (installed using the standard windows installer form python.org) there is only msvcr71.dll from this category (possibly added by wxpython install?).
After I copied the mentioned missing file from
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_ ... \msvcp90.dll
to the python26 directory (where the setup script is also run from), the compilation runs ok, and the resulting exe in the dist folder works ok on that computer. (for some machines I also had to copy some redistributables to the app folder in order to get it work)
The computers I tried are running WinXPh or XPp with SP3;
the python version is 2.6, other involved libraries besides py2exe 0.6.9 is maybe wxPython unicode 22.214.171.124 for py26.
I found some references regarding problems with redistributables e.g.
but it's not quite clear to me, what the deployment using an exe should look like in order to be reasonably sure, that the app will work regardles of the particular computer setup.
I also don't think it should be a standard approach to just copy the missing files from anywhere on the drive, where they happen to be found.
Is there some problem in py2exe or somewhere else in python in this regard, or am I doing something wrong, which first started to matter in python 2.6?
If I missed some relevant informations, please let me know.
Log in to post a comment.