Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with python 3.5 under windows 10 #2

Closed
guiweber opened this issue Mar 26, 2016 · 3 comments
Closed

Doesn't work with python 3.5 under windows 10 #2

guiweber opened this issue Mar 26, 2016 · 3 comments

Comments

@guiweber
Copy link
Contributor

First thing I noticed were several implicit string conversions, but even after fixing those I still get the following exception:
'The driver cannot recognize the specified command.'

Incorporating the windows code from this library (which works really well but is windows only) could be an idea. It is licensed under the Apache license according to the python package index.
https://github.com/michaelgundlach/mp3play

@TaylorSMarks
Copy link
Owner

Ha. If you check the source code, the Windows section has this comment:

Inspired by (but not copied from) Michael Gundlach <gundlach@gmail.com>'s mp3play:
https://github.com/michaelgundlach/mp3play

So I'm already well aware of that package. I'll look into this tonight. The driver issue seems quite odd to me... it works fine under 2.7 on Windows 10 (at least on my computer) so I don't know why it wouldn't work under 3.5.

@KrunchMuffin
Copy link

I don't get that error, but do get this

playsound('Alarm10.wav')
File "C:\Users\Derek\AppData\Local\Programs\Python\Python35\lib\site-packages\playsound.py", line 37, in _playsoundWin
winCommand('play', alias, 'from 0 to', durationInMS)
File "C:\Users\Derek\AppData\Local\Programs\Python\Python35\lib\site-packages\playsound.py", line 22, in winCommand
command = ' '.join(command).encode()
TypeError: sequence item 3: expected str instance, bytes found

@SehgalDivij
Copy link

I am getting the same issue as @KrunchMuffin and can't figure out the reason this is happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants