py2exe and py2.6 with wxPython 2.8 or 2.9

Has anyone an explanation why importing wx would generate this error when py2exe'ing a small script.

creating python loader for extension 'wx._gdi_' (C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd -> wx._gdi_.pyd)
creating python loader for extension 'wx._controls_' (C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd -> wx._controls_.pyd)
creating python loader for extension '_ssl' (C:\Python26\DLLs\_ssl.pyd -> _ssl.pyd)
creating python loader for extension 'bz2' (C:\Python26\DLLs\bz2.pyd -> bz2.pyd)

error: MSVCP90.dll: No such file or directory

The fix is very easy, i.e. put the dll into Python26 folder, however I wonder why Python or wxPython doesn't install this dll in the right place.

I am on Windows 7 and I run into this with both 2.8.10.1 and 2.9pre with Python 2.6.3. I then installed Py 2.6.4 (for this user only) but still see the same problem.

Werner

I had the same problem and I resolved that doing the same thing.
Plus, if you nedd to run your exe application on a Windows XP machine
you must install the Visual C++ Runtime 9.0.21022.

···

2010/2/11 werner <wbruhin@free.fr>:

Has anyone an explanation why importing wx would generate this error when
py2exe'ing a small script.

creating python loader for extension 'wx._gdi_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd ->
wx._gdi_.pyd)
creating python loader for extension 'wx._controls_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd ->
wx._controls_.pyd)
creating python loader for extension '_ssl' (C:\Python26\DLLs\_ssl.pyd ->
_ssl.pyd)
creating python loader for extension 'bz2' (C:\Python26\DLLs\bz2.pyd ->
bz2.pyd)

error: MSVCP90.dll: No such file or directory

The fix is very easy, i.e. put the dll into Python26 folder, however I
wonder why Python or wxPython doesn't install this dll in the right place.

I am on Windows 7 and I run into this with both 2.8.10.1 and 2.9pre with
Python 2.6.3. I then installed Py 2.6.4 (for this user only) but still see
the same problem.

Werner

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

--
EXPO - Hardware solution, Software revolution

Esposti Daniele
Via Aldo Moro, 14/h
20085 - Locate di Triulzi (MI)
Cell +39 347 0748470

I think a better question is since the DLL is found okay at runtime when the application is run directly with Python, why can't py2exe find it?

···

On 2/11/10 4:25 AM, werner wrote:

Has anyone an explanation why importing wx would generate this error
when py2exe'ing a small script.

creating python loader for extension 'wx._gdi_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd ->
wx._gdi_.pyd)
creating python loader for extension 'wx._controls_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd ->
wx._controls_.pyd)
creating python loader for extension '_ssl' (C:\Python26\DLLs\_ssl.pyd
-> _ssl.pyd)
creating python loader for extension 'bz2' (C:\Python26\DLLs\bz2.pyd ->
bz2.pyd)

error: MSVCP90.dll: No such file or directory

The fix is very easy, i.e. put the dll into Python26 folder, however I
wonder why Python or wxPython doesn't install this dll in the right place.

--
Robin Dunn
Software Craftsman

Maybe it follows the manifest to strictly?

Looking at the manifest included with PY2.6 it shows at the end:

<file name="msvcr90.dll" /> <file name="msvcp90.dll" /> <file name="msvcm90.dll" />
</assembly>

But it only installs "msvcr90.dll"

I'll report it on the py2exe list.

Werner

···

On 12/02/2010 03:45, Robin Dunn wrote:

On 2/11/10 4:25 AM, werner wrote:

Has anyone an explanation why importing wx would generate this error
when py2exe'ing a small script.

creating python loader for extension 'wx._gdi_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd ->
wx._gdi_.pyd)
creating python loader for extension 'wx._controls_'
(C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd ->
wx._controls_.pyd)
creating python loader for extension '_ssl' (C:\Python26\DLLs\_ssl.pyd
-> _ssl.pyd)
creating python loader for extension 'bz2' (C:\Python26\DLLs\bz2.pyd ->
bz2.pyd)

error: MSVCP90.dll: No such file or directory

The fix is very easy, i.e. put the dll into Python26 folder, however I
wonder why Python or wxPython doesn't install this dll in the right place.

I think a better question is since the DLL is found okay at runtime when the application is run directly with Python, why can't py2exe find it?