1

Good day all,

I developed a desktop app using wxPython GUI and created an .exe file for it using Py2exe. But when I run/launch the .exe file it says “is not a valid win32 application”.

What could have gone wrong with my process?

enter image description here

History:

1) My installation is: Windows 32-bit, Python 2.7.6, wxPython3

2) I have successfully done this process using my old PC

3) Now that am using a new PC with the same installation, it first complained of missing msvcp90.dll file and I downloaded one here (the Manual fix) to fix that.

4) After creating the exe file (with the new PC), it won’t run/launch

Thanks in advance for your help.

Umar Yusuf
  • 926
  • 2
  • 13
  • 30
  • was your app created on your old pc? was the old pc 64-bit? – NGambit Jul 25 '14 at 16:17
  • 1
    It could be some version mismatch of msvcp90. try searching it in your windows directly and manually copy one of those to your build folder. – otterb Jul 25 '14 at 16:17
  • @NGambit YES, it was created on my old PC it was 32-bit. (I lost the old PC, no way to lay my hands on it, am regretting) – Umar Yusuf Jul 26 '14 at 14:12
  • @otterb, kindly clarify how I would go about searching it (the missing msvcp90.dll file) in my windows directly? – Umar Yusuf Jul 26 '14 at 14:20
  • I just use explorer's search window. If you don't see any, try installing Visual C++ 2008 Redistributable Package as explained here http://stackoverflow.com/a/325456/566035 – otterb Jul 28 '14 at 09:21

1 Answers1

1

Did you create the .exe in the same computer? I encountered this problem once when trying to run a program created in 64 bit Windows and python on a 32 bit PC.

If you need to run it on a 32 bit PC try creating the executable in the same

user2963623
  • 2,267
  • 1
  • 14
  • 25