Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problems mpsyt not found #818

Closed
amodeo12 opened this issue Apr 1, 2018 · 4 comments
Closed

Installation problems mpsyt not found #818

amodeo12 opened this issue Apr 1, 2018 · 4 comments

Comments

@amodeo12
Copy link

amodeo12 commented Apr 1, 2018

Hi everyone,

After installing mps-youtube in RPi with Raspbian Jessie following the instructions (with pip3) I try to execute it and I get the error:

-bash: mpsyt: command not found

I have also installed youtube-dl and tried to include the path /usr/local/bin in $PATH (not sure if I did it correctly though). I have reinstalled several times, in some of them I didn't get the error, but it didn't start anyway, just prompted for a while and when I interrupted with Ctrl+C I got some library error related with youtube-dl.

Just ask if you any other information. Thank you in advance

EDIT:

After another reinstallation I am getting the error when I make Keyboard Interrupt, it says:

CTraceback (most recent call last):
File "/usr/local/bin/mpsyt", line 7, in
from mps_youtube import main
File "/home/pi/.local/lib/python3.5/site-packages/mps_youtube/init.py", line 8, in
init.init()
File "/home/pi/.local/lib/python3.5/site-packages/mps_youtube/init.py", line 67, in init
load_player_info(config.PLAYER.get)
File "/home/pi/.local/lib/python3.5/site-packages/mps_youtube/util.py", line 408, in load_player_info
g.mpv_version = _get_mpv_version(player)
File "/home/pi/.local/lib/python3.5/site-packages/mps_youtube/util.py", line 446, in _get_mpv_version
o = subprocess.check_output([exename, "--version"]).decode()
File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 383, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 676, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1244, in _execute_child
part = os.read(errpipe_read, 50000)
KeyboardInterrupt

@Rom1deTroyes
Copy link

Rom1deTroyes commented Apr 1, 2018 via email

@vn-ki
Copy link
Member

vn-ki commented Apr 1, 2018

mpsyt has incredibly slow startup time on a RPi (I have been there). It usually takes around 15 seconds on my RPi 2, but I have seen it taking up to 30 seconds to just startup. So just give it enough time to start up (Wait for atleast a minute).

One of the main reasons for the slow startup is youtube-dl. They have done an experimental lazy-loading-extractor feature (ytdl-org/youtube-dl#8497) which should improve the speed, but I've never tried it with mpsyt. Feel free to try and report back here.

@Gelixen
Copy link

Gelixen commented Jun 9, 2018

Getting same error bash: mpsyt: command not found on my RPI 3B. Even changed default python version from 2.7 to 3.5, but still no luck.

pi@raspberrypi:~ $ mpsyt -v
bash: mpsyt: command not found
pi@raspberrypi:~ $ python -V
Python 3.5.3
pi@raspberrypi:~ $ pip -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

UPDATE:
Never mind, missed to add /home/pi/.local/bin to PATH.

@ritiek
Copy link
Member

ritiek commented Jul 2, 2018

I am going to close this as @amodeo12 was able to fix the original issue -bash: mpsyt: command not found mpsyt.

Also as @vn-ki mentioned, it indeed takes a while for mps-youtube to launch on low powered devices like Raspberry Pi, etc. So, grab a coffee and wait. If it takes insanely long (like 5 mins+), please open a separate issue instead.

@ritiek ritiek closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants