I am trying to make an executable file with PyInstaller that includes two images and two mp3 files. All of my files are in the same directory as my main.py.
Here is what I am putting into the cmd:
pyinstaller --onefile --add-data "LifeOrBath.jpg;." --add-data "MainSound.mp3;." --add-data "BATH.png;." --add-data "BooWomp.mp3;." main.py
The main.exe comes out correctly, but I get a error when I run it:
DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80070002 (The system cannot find the file specified.)
Why would they not be included when making the executable?
New contributor
Samuel Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3