I have checked path variables too everything works fine for other functions but it is showing error for this module only. Code:
from playsound import playsound
playsound('E://PYTHON//Music.mp3')
The following is the error:
PS C:\Users\HP> & C:/Users/HP/AppData/Local/Programs/Python/Python39/python.exe e:/PYTHON/Playsound.py
Error 263 for command:
open E://PYTHON//Music.mp3
The specified device is not open or is not recognized by MCI.
Error 263 for command:
close E://PYTHON//Music.mp3
Failed to close the file: E://PYTHON//Music.mp3
Traceback (most recent call last):
File "e:\PYTHON\Playsound.py", line 2, in <module>
playsound('E://PYTHON//Music.mp3')
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 263 for command:
open E://PYTHON//Music.mp3
The specified device is not open or is not recognized by MCI.
PS C:\Users\HP> & C:/Users/HP/AppData/Local/Programs/Python/Python39/python.exe e:/PYTHON/Playsound.py
Error 263 for command:
open E://PYTHON//Music.mp3
The specified device is not open or is not recognized by MCI.
Error 263 for command:
close E://PYTHON//Music.mp3
The specified device is not open or is not recognized by MCI.
Failed to close the file: E://PYTHON//Music.mp3
Traceback (most recent call last):
File "e:\PYTHON\Playsound.py", line 2, in <module>
playsound('E://PYTHON//Music.mp3')
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 263 for command:
open E://PYTHON//Music.mp3
The specified device is not open or is not recognized by MCI.