py2exe not working: "MSVCR90.dll is missing from your computer"

Hi

I am trying to make myPythonScript (with a wx gui) into a standalone
exe using py2exe.

I have followed the instructions found here (several times) very
closely
http://wiki.wxpython.org/py2exe, but without success.

(NB: I am running python 2.6.2)

These are the basic steps I tried:

1) I installed vcredist_x86.exe and ran it as administrator (I'm on
win7)
2) I went to C:windows/winsxs/ and located the manifest file amid the
mangled dir names (the file is called
"x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest")
3) I also located the msvcr90.dll and msvcr90d.dll files, as well as
the accompanying policy files.
4) I put the two dll files and the manifest file etc into a directory
named "C:\myTempDir"
5) I made the change to the setup.py file to copy the contents of C:
\myTempDir into the new dist of my script.
6) I ran the setup file from the command prompt and it worked -- the
build and dist directories were created and full, and the dist dir
contains a dir called "Microsoft.VC90.CRT", inside of which is the
MSVCR90.dll file (as well as the manifest file and the MASVCRTd.dll
file and the policy files etc).
7) when I run myPythonScript.exe, I get an error saying

"the program cannot start because MSVR90.dll is missing from your
computer Try reinstalling the program to fix this problem"

I have tried several times without success.

Please help!

Many thanks
C

What is your setup.py?

If you followed the sample on the wiki you should also have the MSVCR stuff under "lib" and make sure that you don't use bundle option 1 nor 2.

If you build the sample shown on the wiki does it work?

Werner

···

On 01/06/2010 16:59, pycharles wrote:

Hi

I am trying to make myPythonScript (with a wx gui) into a standalone
exe using py2exe.

I have followed the instructions found here (several times) very
closely
py2exe - wxPyWiki, but without success.

(NB: I am running python 2.6.2)

These are the basic steps I tried:

1) I installed vcredist_x86.exe and ran it as administrator (I'm on
win7)
2) I went to C:windows/winsxs/ and located the manifest file amid the
mangled dir names (the file is called
"x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest")
3) I also located the msvcr90.dll and msvcr90d.dll files, as well as
the accompanying policy files.
4) I put the two dll files and the manifest file etc into a directory
named "C:\myTempDir"
5) I made the change to the setup.py file to copy the contents of C:
\myTempDir into the new dist of my script.
6) I ran the setup file from the command prompt and it worked -- the
build and dist directories were created and full, and the dist dir
contains a dir called "Microsoft.VC90.CRT", inside of which is the
MSVCR90.dll file (as well as the manifest file and the MASVCRTd.dll
file and the policy files etc).
7) when I run myPythonScript.exe, I get an error saying

"the program cannot start because MSVR90.dll is missing from your
computer Try reinstalling the program to fix this problem"

I have tried several times without success.

It works! The problem was, as you guessed, my setup file (I feel
dumb)
:wink:

I set aside my setup file and built the one from the site, changing
only the minimum needed for the filenames and paths to hook up. It
worked.

Thank you very much for your help and for your patience, and sorry for
this newbie gaff.

~C

···

On Jun 1, 11:56 am, werner <wbru...@free.fr> wrote:

On 01/06/2010 16:59, pycharles wrote:

> Hi

> I am trying to make myPythonScript (with a wx gui) into a standalone
> exe using py2exe.

> I have followed the instructions found here (several times) very
> closely
>py2exe - wxPyWiki, but without success.

> (NB: I am running python 2.6.2)

> These are the basic steps I tried:

> 1) I installed vcredist_x86.exe and ran it as administrator (I'm on
> win7)
> 2) I went to C:windows/winsxs/ and located the manifest file amid the
> mangled dir names (the file is called
> "x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest")
> 3) I also located the msvcr90.dll and msvcr90d.dll files, as well as
> the accompanying policy files.
> 4) I put the two dll files and the manifest file etc into a directory
> named "C:\myTempDir"
> 5) I made the change to the setup.py file to copy the contents of C:
> \myTempDir into the new dist of my script.
> 6) I ran the setup file from the command prompt and it worked -- the
> build and dist directories were created and full, and the dist dir
> contains a dir called "Microsoft.VC90.CRT", inside of which is the
> MSVCR90.dll file (as well as the manifest file and the MASVCRTd.dll
> file and the policy files etc).
> 7) when I run myPythonScript.exe, I get an error saying

> "the program cannot start because MSVR90.dll is missing from your
> computer Try reinstalling the program to fix this problem"

> I have tried several times without success.

What is your setup.py?

If you followed the sample on the wiki you should also have the MSVCR
stuff under "lib" and make sure that you don't use bundle option 1 nor 2.

If you build the sample shown on the wiki does it work?

Werner

It works! The problem was, as you guessed, my setup file (I feel
dumb)
:wink:
   

What was the problem with your setup.py? This is good information for anyone seeing this thread later on.

I set aside my setup file and built the one from the site, changing
only the minimum needed for the filenames and paths to hook up. It
worked.
   

Sample apps (MakingSampleApps - wxPyWiki) are a very helpful tool to debug a problem, that is why I insisted that you try/confirm if the wiki sample works for you or not (and as all the code can just be copy/pasted that is not a lot of work.

Thank you very much for your help and for your patience, and sorry for
this newbie gaff.
   

You are welcome.

BTW, any chance you can bottom post or intersperse instead of top posting (which is difficult to follow coming in later on to this thread).

Werner

···

On 01/06/2010 22:44, pycharles wrote: