ich such verzweifelt danach was an dem Folgenden kleinen Code ausschitt falsch sein soll.
Code: Alles auswählen
#!/usr/bin/env python
import os, sys, subprocess
class Player():
def play(self, input):
self._mplayer = subprocess.Popen(
['/usr/bin/mplayer', '-slave', '-quiet', '-idle', input],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, bufsize=1)
pl = Player()
pl.play(Hier kommt der Pfad zu einer Mp3 datei rein)
Aber es sollte normal so funktionieren. Vielleicht kann mir ja jemand von euch auf die Sprünge helfen.MPlayer interrupted by signal 13 in module: unknown
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
Gruß
Treehouse