When I run my program on windows 7 I get this error:
Error loading Python DLL 'C:\Users\msi\AppData\Local\Temp_MEI91442\python38.dll
'.
No error messages generated.
FormatMessageW: Feil parameter. (Translated: FormatMessageW: Wrong parameter.)
LoadLibrary: PyInstaller: FormatMessageW failed.
The program converts a video into a text file, which you can play through the terminal. It uses ffmpeg and ffprobe, which I bundle inside the .exe file. The .exe file works great on Windows 10.
Converted to .exe with pyinstaller using:
pyinstaller --onefile --console --icon="icon.ico" --add-data ffmpeg.exe;. --add-data ffprobe.exe;. code.py
Does anyone know how to fix this?
I had the same proplem.
You have to execute pyinstaller with a version of python that suport the Windows-Version of the system that should run the .exe.
Otherwise pyistaller will bundle a python version that insn`t executable on the executing opterating system.
Here you can see the python releases with a comment whether you can use them with win7 or winXP.
Upt do Version 3.4.x python support winXP and upt to 3.8.x win7.
Consider that also your .py-application should be able to run with the older python-version.