I have been trying for a while on and off to get playsound to work, but no matter what file/path I pass to it, it doesn't Initialize correctly. My test program is 2 lines of code, and I have tried uninstalling and reinstalling playsound several times. I know that my sound file is .mp3, and it plays normally when I access it on normal Windows. It is a sound file I downloaded from YouTube.
this is my program, it imports playsound and accesses the file(which contains the super mario 1-up sound effect, so not a hufe file) and plays it,
from playsound import playsound
playsound(r"C:\Users\richm\Music\Notification Sounds\OneUp.mp3")
According to the module, it should be able to play .mp3 files, and I copied the path directly from the folder, so I know that part is correct. here is the error message I am getting:
Traceback (most recent call last): File "C:\Users\richm\Documents\Appplications\Testing Playsound.py", line 3, in <module> playsound(r"C:\Users\richm\Music\Notification Sounds\OneUp.mp3") File "C:\Users\richm\AppData\Roaming\Python\Python310\site-packages\playsound.py", line 36, in _playsoundWin winCommand('open "' + sound + '" alias', alias) File "C:\Users\richm\AppData\Roaming\Python\Python310\site-packages\playsound.py", line 32, in winCommand raise PlaysoundException(exceptionMessage) playsound.PlaysoundException: Error 277 for command: open "C:\Users\richm\Music\Notification Sounds\OneUp.mp3" alias playsound_0.123668739032603 A problem occurred in initializing MCI.
Am I missing something basic here?