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.
This is my entire code as a .txt file:
https://gerhardadler.no/code.txt
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?