Closed baudm closed 7 years ago
I have this problem too, but then I tryied to install using the setup.py and worked fine.
Thanks for this great lib man!
The problem is caused by mplayer2 (in my case)
mplayer.py generate methods based on mplayer -input cmdlist
output, and mplayer2 adds MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
at the bottom of the list.
The correct solution I guess is to ignore the last line if we are working with mplayer2, or just add try/rescue. I'm going to test mplayer.py + mplayer2 and if everything is ok - submit pr
Original issue 16 created by baudm on 2015-03-25T02:00:58.000Z:
What steps will reproduce the problem? 1.sudo pip install mplayer.py
On what operating system? DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.10 DISTRIB_CODENAME=utopic DISTRIB_DESCRIPTION="Ubuntu 14.10" NAME="Ubuntu" VERSION="14.10 (Utopic Unicorn)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.10" VERSION_ID="14.10" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
Please provide any additional information below. jack@ubuntu:~/Shared/pyratao$ sudo pip install mplayer.py Downloading/unpacking mplayer.py Downloading mplayer.py-0.7.0.tar.gz Running setup.py (path:/tmp/pip_build_root/mplayer.py/setup.py) egg_info for package mplayer.py Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip_build_root/mplayer.py/setup.py", line 5, in <module> from mplayer import version File "mplayer/init.py", line 37, in <module> from mplayer.core import Player, Step File "mplayer/core.py", line 412, in <module> Player.introspect() File "mplayer/core.py", line 308, in introspect cls._generate_methods() File "mplayer/core.py", line 292, in _generate_methods func = cls._gen_method_func(name, args) File "mplayer/core.py", line 252, in _gen_method_func t = mtypes.type_map[arg] KeyError: u'2.0-728-g2c378c7-2ubuntu3' Complete output from command python setup.py egg_info: Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/mplayer.py/setup.py", line 5, in <module>
File "mplayer/init.py", line 37, in <module>
File "mplayer/core.py", line 412, in <module>
File "mplayer/core.py", line 308, in introspect
File "mplayer/core.py", line 292, in _generate_methods
File "mplayer/core.py", line 252, in _gen_method_func
KeyError: u'2.0-728-g2c378c7-2ubuntu3'
Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/mplayer.py Storing debug log for failure in /home/jack/.pip/pip.log