treizav
Posts: 4
Joined: Sat Mar 10, 2012 9:31 am

python-mplayer

Thu Dec 13, 2012 11:30 am

Hello, i have a problem with the python-mplayer library (http://code.google.com/p/python-mplayer/).

Code: Select all

pi@raspberrypi ~ $ python3
Python 3.2.3 (default, Jul  6 2012, 13:39:51)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mplayer
>>> mp = mplayer.Player()
>>> mplayer: could not connect to socket
mplayer: No such file or directory

An idea ? (note : mplayer works fine on my Raspberry pi)

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: python-mplayer

Thu Dec 13, 2012 1:40 pm

Code: Select all

which mplayer
echo $PATH
then look in mplayer.py or whatever to see where it is going wrong.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

treizav
Posts: 4
Joined: Sat Mar 10, 2012 9:31 am

Re: python-mplayer

Thu Dec 13, 2012 5:46 pm

The PATH is good... I think it's a Python problem...
My code works in idle, and not in a console !
Image

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: python-mplayer

Sat Dec 15, 2012 6:07 pm

try something like printenv for python.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Python”