+ 1

in python im stuck in here playsound thing.. please help me

Error 275 for command: open "C:\Users\Public\Music\zingat.mp3" Cannot find the specified file. Make sure the path and filename are correct. Error 305 for command: close "C:\Users\Public\Music\zingat.mp3" Cannot specify extra characters after a string enclosed in quotation marks. Failed to close the file: "C:\Users\Public\Music\zingat.mp3" Traceback (most recent call last): File "e:\practice python\Class 1\03_playsound.py", line 2, in <module> playsound('C:\\Users\\Public\\Music\\zingat.mp3') File "C:\Users\abc\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 72, in _playsoundWin winCommand(u'open {}'.format(sound)) File "C:\Users\abc\AppData\Local\Programs\Python\Python310\lib\site-packages\playsound.py", line 64, in winCommand raise PlaysoundException(exceptionMessage) playsound.PlaysoundException: Error 275 for command: open "C:\Users\Public\Music\zingat.mp3" Cannot find the specified file. Make sure the path and filename are correct. PS E:\practice python>

27th Nov 2021, 10:04 AM
Cute Boy
8 Antworten
+ 1
Put your cool code here plz :)
27th Nov 2021, 10:18 AM
SoloProg
SoloProg - avatar
+ 4
You have imported playsound library but your errors saying issue in path put music file in same directory inside project dir the. Copy music file path and try
27th Nov 2021, 10:39 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Upgrade to the latest version of playsound. Works perfectly fine.
3rd Oct 2022, 6:13 PM
Sammy Tech
Sammy Tech - avatar
0
from playsound import playsound playsound('C:\\Users\\Public\\Music\\zingat.mp3')
27th Nov 2021, 10:23 AM
Cute Boy
0
i copied the file to another place and also checked it but it is not happning
27th Nov 2021, 10:50 AM
Cute Boy
0
pip install playsound==1.2.2 This worked But not sure why version 1.3.0 is not worked
23rd Mar 2023, 2:47 AM
Abhimanyu Kumar
Abhimanyu Kumar - avatar
- 1
pip install playsound==1.2.2
24th May 2022, 2:46 AM
Padmanabha Govinakovi Hanumanthachar