Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have placed the mp3 file python but python is throwing the above error!what went wrong.

What I have tried:

i have tried to import python playsound module but it showed the above error
Posted
Updated 9-Oct-22 22:22pm
Comments
Member 8428760 10-Oct-22 17:39pm    
The path might need to be escaped. like if it is c:\yada change it to c:\\yada

The error is pretty explicit: the system cannot find the file you specified at that location.

And even if we had access to your code - which we don't have - we would also need access to your system while the code is running - which we don't have - to check what path you are trying to access, and the file system you are trying to access it on.

So we can't help you: you will have to use the debugger pdb — The Python Debugger — Python 3.10.7 documentation[^] to look at your code while it is running and find the specific path you are trying to access, then look at the file system to work out why the file doesn't exist.

Sorry, but we can't do any of that for you!
 
Share this answer
 
You need to install the playsound package on your system. See playsound · PyPI[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900