py2exe missing MSVCP90.dll

1,248 views
Skip to first unread message

pycharles

unread,
May 27, 2010, 1:34:55 PM5/27/10
to wxPython-users
Hi

I wrote a python script and then built a wx GUI for it. I was hoping
to turn it into an executable using py2exe.

py2exe delivers this error message:

MSVCP90.dll: No such file or directory.

I am running windows 7 on a new laptop. I installed the Microsoft C++
64 bit redistribution package, hoping that might solve my MSDCP90.dll
woes, but I am still getting the same error.

Does anyone know the solution to this problem?

many thanks for any help!

Josh English

unread,
May 27, 2010, 11:20:23 PM5/27/10
to wxpytho...@googlegroups.com
This has gone through the lists recently.

I can't get it right myself. Perhaps someone who can make this work
can just post it to the wiki, please?

Josh

On Thu, May 27, 2010 at 10:34 AM, pycharles <charle...@gmail.com> wrote:

>
> MSVCP90.dll: No such file or directory.

--
Josh English
Joshua.R...@gmail.com
http://joshenglish.livejournal.com

Andrea Gavana

unread,
May 28, 2010, 12:12:46 AM5/28/10
to wxpytho...@googlegroups.com
On 28 May 2010 08:20, Josh English wrote:
> This has gone through the lists recently.
>
> I can't get it right myself. Perhaps someone who can make this work
> can just post it to the wiki, please?
>
> Josh
>
> On Thu, May 27, 2010 at 10:34 AM, pycharles <charle...@gmail.com> wrote:
>
>>
>> MSVCP90.dll: No such file or directory.

http://wiki.wxpython.org/py2exe

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html <==

werner

unread,
May 28, 2010, 4:09:28 AM5/28/10
to wxpytho...@googlegroups.com
I run into this when I installed Py 2.6.5 from scratch on a Windows 7
machine (for all
users).

When doing the build I get an error that msvcp90.dll is not found.

My workaround is to change line 1056 in py2exe/build_exe.py from

if sys.version_info > (2,6):
excludes_use.append("msvcr90.dll")

to:

if sys.version_info > (2,6):
excludes_use.append("msvcr90.dll")
excludes_use.append("msvcp90.dll")

I posted that to the py2exe list and someone mentioned that one can also
workaround this by adding it to the dll_excludes list.

Will update the wiki with this.

Werner


Josh English

unread,
May 29, 2010, 5:30:25 PM5/29/10
to wxpytho...@googlegroups.com
With that link I am suitably chastised.

I've even tried the hints on that page myself.

Sorry for the snark.

> --
> To unsubscribe, send email to wxPython-user...@googlegroups.com
> or visit http://groups.google.com/group/wxPython-users?hl=en

pycharles

unread,
Jun 1, 2010, 12:21:22 PM6/1/10
to wxPython-users
Hi Werner

Thanks for your reply

I am running python 2.6.2 so, unfortunately, this solution doesn't
solve the problem.







On May 28, 4:09 am, werner <wbru...@free.fr> wrote:
> On 27/05/2010 19:34, pycharles wrote:
>
> > Hi
>
> > I wrote a python script and then built a wx GUI for it.  I was hoping
> > to turn it into an executable using py2exe.
>
> > py2exe delivers this error message:
>
> >MSVCP90.dll: No such file or directory.
>
> > I am running windows 7 on a new laptop.  I installed the Microsoft C++
> > 64 bit redistribution package, hoping that might solve my MSDCP90.dll
> > woes, but I am still getting the same error.
>
> > Does anyone know the solution to this problem?
>
> > many thanks for any help!
>
> I run into this when I installed Py 2.6.5 from scratch on a Windows 7
> machine (for all
> users).
>
> When doing the build I get an error thatmsvcp90.dllis not found.

werner

unread,
Jun 1, 2010, 12:58:48 PM6/1/10
to wxpytho...@googlegroups.com
On 01/06/2010 18:21, pycharles wrote:
> Hi Werner
>
> Thanks for your reply
>
> I am running python 2.6.2 so, unfortunately, this solution doesn't
> solve the problem.
>
>
Yes, I didn't have the problem with msvcp90.dll with 2.6.2. Any reason
why you don't upgrade to 2.6.5 - might as will be up to date if you work
with 2.6, no?

But, in the other thread I was talking about that you should try the
sample application on the wiki page - http://wiki.wxpython.org/py2exe.

In a test folder create the setup.py and the simplewx.py shown on the
wiki and try to run it, if it runs then build it and then try the exe it
generated on that machine and if that works move/copy the dist folder to
a test machine which does not have Python installed and try it there.

Werner

Reply all
Reply to author
Forward
0 new messages