I am having a problem with my code. On Visual Studio everything is fine, but after PyInstaller packaging it is not. The directory of the file that Playsound wants to open does not correspond to the right one! Would anyone know a solution?
Traceback (most recent call last):
File "main.py", line 55, in <module>
File "playsound.py", line 35, in _playsoundWin
File "playsound.py", line 31, in winCommand
playsound.PlaysoundException:
Error 275 for command:
open "C:\Users\*****\AppData\Local\Temp\_ME181442\Sounds\startup.wav" alis playsound_0.5158534024163396
Cannot find the specified file. Make sure the path and filename are correct.
[9788] Failed to execute script 'main' due to unhandled exception!
source https://stackoverflow.com/questions/72748984/playsound-gives-me-an-error-when-i-start-the-executable-packaged-by-pyinstaller
Comments
Post a Comment