Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows installer built with setup.py bdist_wininst triggers RuntimeError when installing. How do I fix this?

I'm building an installation EXE for my project using setuptool's bdist_wininst. However, I've found that when I actually run said installer on a Win7-64bit machine w/ Python 2.7.3, I get a Runtime Error that looks like this: http://i.imgur.com/8osT3.jpg. (only the 64 bit installer against python-2.7 64-bit; the 32-bit one (on python2.7 32-bit) appears fine) I can click OK and the installer finishes, but this certainly looks poor to end-users.

Any ideas how to solve it?

like image 968
UsAaR33 Avatar asked Apr 04 '13 02:04

UsAaR33


2 Answers

Maybe you have to create the executable specifically for the x64? This is the command you would have to run:

python setup.py build --plat-name=win-amd64

More information can be found here:

http://docs.python.org/2/distutils/builtdist.html#cross-compiling-on-windows

like image 171
Percentage Avatar answered Oct 05 '22 22:10

Percentage


Maybe a Visual C++ Redistributable Package is missing or corrupt, try (re)install Microsoft Visual C++ 2008 SP1/2010 Redistributable Package (x64) or any other version.

like image 31
Peter Kiss Avatar answered Oct 05 '22 23:10

Peter Kiss