2

I know this question has been asked before, but none of the solutions are working for me.

I use Arch Linux.

Here's what I've tried / looked into:

  1. pyglet - does not work; their own website says 'Linux users have the option of choosing between OpenAL and ALSA for audio output. Unfortunately both implementations have severe limitations or implementation bugs that are outside the scope of pyglet's control.'

  2. pymedia - not supported any more; even the examples on their website do not work.

  3. pygame - from their website: 'Be aware that MP3 support is limited'.

  4. wx.media - this actually works, but the rest of my 'application' is in tkinter.

  5. mp3play - only win32

Please help.

1
  • same here,cannot find a satisfying lib. Commented Sep 27, 2013 at 2:30

2 Answers 2

1

You could try sfml, it has audio support - there are Python bindings for the latest version, I've used them and they work pretty well.

Sign up to request clarification or add additional context in comments.

3 Comments

hmm...i don't know if i'm doing something wrong, but i can't seem to install it... I downloaded it, and ran python2 setup.py build, but I get 'src/sfml.cpp:278:29: fatal error: SFML/Graphics.hpp: No such file or directory'...??
@JayanthKoushik: Your question was for libraries that will play MP3s, which people have delivered answers for. It's a bit much to then continue to ask these people for help on each step of the installation of these libraries. If you have a problem installing/using the libraries, perhaps you should go to any support site for the library, and if you are still stuck, consider asking another question on stackoverflow to help you with the installation.
@JayanthKoushik Please read the documentation.
1

I am working on a music player project right now and along the way, I have developed a Python module which provides a very high-level interface to play all kind of audio files. It uses FFmpeg and PortAudio.

This is the module: ffmpeg

For compiling on Linux, see the Readme; you might need a recent FFmpeg / PortAudio version; at least the versions in Debian were too old.

A simple demo example player based on this module is here.

2 Comments

I get 'OSError: [Errno 2] No such file or directory: ''' on running compile.py...??
Have you installed all the dependencies, etc.? See the Readme for more info. Maybe you need to update compile.py for your system.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.