TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
517 stars 114 forks source link

Track back with files path #85

Open Vieiraork opened 3 years ago

Vieiraork commented 3 years ago

Hello,

I have so much problems with last version of packet. The error in reconize path file contains 'backslash' this simbol, I use python version 3.8.2 now using version 1.2.2 of playsound. Sorry for English but I hope can help others with same problem.

In file I use glob packege to return a list files 'Music' folder on Windows but in last version always return erros, but in version 1.2.2 this erros not occur.

Code used in test is here https://pastebin.com/u1MWr5DY. error.txt

makwadajp commented 3 years ago

I also get the the following error along with Error 263 with MCI device issues, as mentioned in your above error.txt link on Windows. Furthermore, this issue might be related to Error 263 and 305 (my comment) which seems to be happening on wav files on Windows when directly providing audio's file path (while I understand your code uses glob for mp3 files).

  File "C:\Users\mwada\Anaconda3\envs\test\lib\site-packages\playsound.py", line 72, in _playsoundWin
    winCommand(u'open {}'.format(sound))
  File "C:\Users\mwada\Anaconda3\envs\test\lib\site-packages\playsound.py", line 64, in winCommand
    raise PlaysoundException(exceptionMessage)
Vieiraork commented 2 years ago

Yeah, I'm use glob module, but I dont understand the fact of the error occours with mp3 files also. Thank you for response!