Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
c:\Users\David\PyInstaller-2.1\KivyPong\dist\KivyPong>kivypong
[INFO ] Kivy v1.8.0
[INFO ] [Logger ] Record log in C:\Users\David\.kivy\logs\kivy
_14-08-12_6.txt
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Users\David\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", li
ne 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\David\PyInstaller-2.1\KivyPong\build\KivyPong\out00-PYZ.pyz\ki
vy.app", line 321, in <module>
File "C:\Users\David\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", li
ne 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\David\PyInstaller-2.1\KivyPong\build\KivyPong\out00-PYZ.pyz\ki
vy.base", line 29, in <module>
File "C:\Users\David\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", li
ne 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\David\PyInstaller-2.1\KivyPong\build\KivyPong\out00-PYZ.pyz\ki
vy.event", line 8, in <module>
File "C:\Users\David\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", li
ne 409, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
ImportError: DLL load failed: %1 is not a valid Win32 application.
c:\Users\David\PyInstaller-2.1\KivyPong\dist\KivyPong>
I'm trying to compile a Kivy/Python app into an EXE with PyInstaller 2.1, but I get this error when I run the compiled EXE. I've had it before and fixed it, but I have no idea what to do in this situation. The .py file in the package runs fine. Help?
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Magnie
- Scratcher
100+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
http://stackoverflow.com/questions/14629818/importerror-dll-load-failed-1-is-not-a-valid-win32-application might help.
▴ ▾ ▴ Macbook Pro 13" 2015 i5-5257U 8GB RAM - MacOS Sierra - Vivaldi v1.7 ▴ ▾ ▴
There are 10 types of people in this world, those who understand binary, those who don't, and those who know ternary.
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
http://stackoverflow.com/questions/14629818/importerror-dll-load-failed-1-is-not-a-valid-win32-application might help.What should I add to my PATH in this case?
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Magnie
- Scratcher
100+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
If Kivy is in a separate Python installation, you will have to change the paths to wherever that installation is.
▴ ▾ ▴ Macbook Pro 13" 2015 i5-5257U 8GB RAM - MacOS Sierra - Vivaldi v1.7 ▴ ▾ ▴
There are 10 types of people in this world, those who understand binary, those who don't, and those who know ternary.
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
And if it isn't…? If Kivy is in a separate Python installation, you will have to change the paths to wherever that installation is.
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Magnie
- Scratcher
100+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
▴ ▾ ▴ Macbook Pro 13" 2015 i5-5257U 8GB RAM - MacOS Sierra - Vivaldi v1.7 ▴ ▾ ▴
There are 10 types of people in this world, those who understand binary, those who don't, and those who know ternary.
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Magnie
- Scratcher
100+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
Hmm, I'm not sure then. Go through everything and make sure you have the right paths, compatible versions, etc. Try it on another computer too maybe?
▴ ▾ ▴ Macbook Pro 13" 2015 i5-5257U 8GB RAM - MacOS Sierra - Vivaldi v1.7 ▴ ▾ ▴
There are 10 types of people in this world, those who understand binary, those who don't, and those who know ternary.
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
Would installing the 32 bit version of Python help? I'm running 64 bit Windows 8.
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Magnie
- Scratcher
100+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
It's possible. Once again, I suggest trying on another computer if possible.
▴ ▾ ▴ Macbook Pro 13" 2015 i5-5257U 8GB RAM - MacOS Sierra - Vivaldi v1.7 ▴ ▾ ▴
There are 10 types of people in this world, those who understand binary, those who don't, and those who know ternary.
- davidkt
- Scratcher
1000+ posts
[pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application
I don't have one, so I'm going to get the 32 bit Python.
Remember when I looked like this? I still do.
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
- Discussion Forums
- » Advanced Topics
- » [pyinstaller-2.1] ImportError: DLL load failed: %1 is not a valid Win32 application