I have run py2exe sucessfully up to this point using cmd (python setup.py py2exe). My Error is

ImportError: DLL load failed: %1 is not a valid Win32 application

I am leaving for spain tomorrow and would like an answer fast!

>>> import platform
>>> platform.architecture()[0]
'32bit'

py2exe-0.6.9.win32-py2.7.exe

Check that you python version and py2exe are both 32bit or both 64bit.
I keep all to 32bit in Python,and i have 64bit windows 7.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.