-
Notifications
You must be signed in to change notification settings - Fork 14
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
TypeError in sound.py #3
Comments
Hi, pygame 1.9.1 seems to be the latest stable release and also the version provided by Homebrew. With 1.9.1 I'm unable to reproduce this issue and if I add |
Installed pygame with pip |
That would install the latest development version from their mercurial repository. Did you intentionally want to install a development version? I would expect most users to install the stable version (1.9.1). If you intentionally wanted to use the development version then we need to figure out a way to tell them apart so that it will work with both stable and dev. |
It seems to work: |
@Palmerx
|
Do anyone has an update on this? Thanks! |
@Dinh-Hung-Tu Which version of pygame are you using? |
@dholm Hi David, I am using version |
Attempt to fix issue #3 by calling read on the BytesIO instance.
@Dinh-Hung-Tu Try using the HEAD version of simpleguitk and see if that resolves your issue. |
File "/usr/local/lib/python2.7/site-packages/simpleguitk/sound.py", line 62, in load_sound
return Sound(URL)
File "/usr/local/lib/python2.7/site-packages/simpleguitk/sound.py", line 22, in init
self._sound = pygame.mixer.Sound(io.BytesIO(soundfile))
TypeError: Unrecognized argument (type _io.BytesIO)
I guess the problem is in line 22:
self._sound = pygame.mixer.Sound(io.BytesIO(soundfile))
should be something like:
self._sound = pygame.mixer.Sound(io.BytesIO(soundfile).read())
pygame version 1.9.2a0 OSX 10.9.2
The text was updated successfully, but these errors were encountered: