Solving "Dll Load Failed: %1 Is Not a Valid Win32 Application." for Pygame

Solving DLL load failed: %1 is not a valid Win32 application. for Pygame

It could be due to the architecture of your OS. Is your OS 64 Bit and have you installed 64 bit version of Python? It may help to install both 32 bit version Python 3.1 and Pygame, which is available officially only in 32 bit and you won't face this problem.

I see that 64 bit pygame is maintained here, you might also want to try uninstalling Pygame only and install the 64 bit version on your existing python3.1, if not choose go for both 32-bit version.

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

Unofficial Windows Binaries for Python Extension Packages

You can find any Python libraries from here.

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

In 90% of cases this error is the result of some mixing of 64bit and 32bit. Assuming all your tests here are accurate, I'm guessing the dev machine you are using has everything at 64bit, but the other windows machine either has a DLL that was desinged for 32 bit, or the windows system itself is a 32bit installation (even if the machine itself is 64 bit).

Don't worry about sys.platform returning win32, that's what it does.

Try the basics on both machines: right click on computer in the file explorer and then properties - see if the installation of windows is 32 or 64 bit. If the other machine is 32 bit, then your exe isn't compatible with it unless you're willing to change the OS.

An alternative solution: install the python 32 bit version on your dev machine, making the exe file with it pretty much guarantees that it will work on both 32 and 64 bit system.

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

It seems to be using this script to locate your system's Python. The script seems to be picking up a Python installation in C:\csvn\Python25 which apparently comes with Collabnet's SVN for Windows and is in all likelihood not a full Python installation.

You should just install a standard 64-bit Python from python.org. That little batch script seems to suggest they support Python 2.5 and 2.6, though 2.7 would likely work too. Maybe to be on the safe side start with 2.6: http://www.python.org/download/releases/2.6.6/

Just install to the normal default installation path of C:\Python26 and make sure that path is early on your %PATH% environment variable.



Related Topics



Leave a reply



Submit