[MPlayer-users] Python bindings: pymplb

david d.bertrand at satellite-multimedia.com
Thu Oct 14 12:00:26 CEST 2010


On 2010-10-05 19:32, Stefan Parviainen wrote:

>Using the bindings looks something like this:
> import pymplb
..

Hi,
I am unable to import the module on windows :

C:\Documents and Settings\user\Bureau\devel\pymplb>c:\Python25\python.exe
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymplb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pymplb.py", line 85
    except OSError as err:
                    ^
SyntaxError: invalid syntax
>>>

same error on debian/lenny with python 2.5.2

and with an upper version (2.6 or 2.7)

C:\Documents and Settings\user\Bureau\devel\pymplb>c:\Python26\python.exe
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymplb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pymplb.py", line 232, in <module>
    MPlayer = make_mplayer_class() # pylint: disable-msg=C0103
  File "pymplb.py", line 228, in make_mplayer_class
    _MPlayer._add_methods(mplayer_bin)
  File "pymplb.py", line 121, in _add_methods
    player = cls._run_player([mplayer_bin, '-input', 'cmdlist'])
  File "pymplb.py", line 87, in _run_player
    raise PlayerNotFoundException(args[0])
pymplb.PlayerNotFoundException: Player not found at mplayer <<<< path to mplayer adapted in the source.
>>> import pymplb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pymplb.py", line 232, in <module>
    MPlayer = make_mplayer_class() # pylint: disable-msg=C0103
  File "pymplb.py", line 228, in make_mplayer_class
    _MPlayer._add_methods(mplayer_bin)
  File "pymplb.py", line 131, in _add_methods
    argtypes = [cls._arg_types[y] for y in [x.strip('[]') for x in args]]
KeyError: '1.0rc2-4.2.1'
>>>


-- 
tél. Paris : 01 72 63 38 03
tél. Montpellier : 04 67 47 09 10

http://www.satellite-multimedia.com
David BERTRAND<d.bertrand at satellite-multimedia.com>



More information about the MPlayer-users mailing list