Oh okay!
So I should just use another python audio library which does not require 
any graphicrelated libraries.

Thank you very much for your great help!

Have a nice day!

PS: Can you recommend any python audio library which supports basically 
.mp3, other formats would be bonus. 

Am Mittwoch, 29. Januar 2014 00:00:31 UTC+1 schrieb 
[email protected]:
>
> Please help me! I already searched for over 2hrs but I cannot seem to get 
> this working.
>
> I got this demo script from pyglet:
>
> import pyglet
>
> music = pyglet.resource.media('music.mp3')
> music.play()
>
> pyglet.app.run()
>
> Trying to run this always gives me following errors:
>
> File "/home/christian/public/audio.py", line 3, in <module>
>     music = pyglet.resource.media('music.mp3')
>   File "/usr/local/lib/python2.7/dist-packages/pyglet/resource.py", line 
> 623, in media
>     return media.load(path, streaming=streaming)
>   File "/usr/local/lib/python2.7/dist-packages/pyglet/media/__init__.py", 
> line 1412, in load
>     source = get_source_loader().load(filename, file)
>   File "/usr/local/lib/python2.7/dist-packages/pyglet/media/__init__.py", 
> line 1393, in load
>     return riff.WaveSource(filename, file)
>   File "/usr/local/lib/python2.7/dist-packages/pyglet/media/riff.py", line 
> 201, in __init__
>     'AVbin is required to decode compressed media')
> pyglet.media.riff.WAVEFormatException: AVbin is required to decode 
> compressed media
>
> At the moment I have the pyglet version from 'pip install --upgrade 
> http://pyglet.googlecode.com/archive/tip.zip' before I installed the 1.4 
> version manually.
> My Avbin versions should be 10 as well as 7. Two versions because I tried 
> installing the older version afterwards as I read somewhere that this 
> should probably fix the problem, but it did not. 
>
> Any help is greatly appreciated!
>
> Thank you :)
>
> Regards,
>
> Christian
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to