Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

executable made with py2exe doesn't run on windows xp 32bit

I created an executable with py2exe on a 64bit windows 7 machine, and distributed the program.

On a windows xp 32bit machine the program refuses to run exhibiting the following behavior:

a popup window says: program.exe is not a valid win32 application.

The command prompt window says "access denied"

I checked for permissions and the user has full control and complete ownership of the file and its parent directories. So that can't be the issue.

The only feasible possibility I can image is an OS/architectural incompatibility. How should I fix this?

My setup.py file used to generate the executable:

from distutils.core import setup
import py2exe

setup(console=['xerxes2excel.py'])

I ran the following to generate the exe:

python setup.py py2exe
like image 312
Razor Storm Avatar asked Jun 16 '11 21:06

Razor Storm


People also ask

Is py2exe a compiler?

py2exe is a module that makes it so you can compile Python code to Windows executables.

Is py2exe safe?

Is py2exe safe to use? The python package py2exe was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as safe to use.

Can Python make an EXE?

Underneath the GUI is PyInstaller, a terminal based application to create Python executables for Windows, Mac and Linux. Veteran Pythonistas will be familiar with how PyInstaller works, but with auto-py-to-exe any user can easily create a single Python executable for their system.


1 Answers

I think you just need to install 32-bit python and 32-bit py2exe on your machine.... see Can 64-bit python create 32-bit Windows executables

like image 161
bwawok Avatar answered Sep 18 '22 00:09

bwawok