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

Program "mpv" not found. Please install it. #67

Open
ninko76 opened this issue Apr 30, 2024 · 33 comments
Open

Program "mpv" not found. Please install it. #67

ninko76 opened this issue Apr 30, 2024 · 33 comments

Comments

@ninko76
Copy link

ninko76 commented Apr 30, 2024

When I try to run jerry it says that I do not have mpv installed. I have it installed with scoop but it seems like jerry does not detect it. Please help

@justchokingaround
Copy link
Owner

jerry -e and change the player to be player=mpv.exe

@ninko76
Copy link
Author

ninko76 commented May 1, 2024

Screenshot 2024-05-01 095540
Worked but now when i type jerry it thinks for a second then goes back to enter command. I did get the anime selector when I typed: jerry -l spanish cyberpunk edgerunners --number 2 --json but after selectinga show nothing happened.

@YuuOrKillua
Copy link

Mine has the same error, but not even adding the full path is working player="NOTSHOWINGFORSECURITYREASONS\scoop\apps\mpv\current\mpv.exe".

@justchokingaround
Copy link
Owner

youre not supposed to specify the full path, just mpv.exe

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

yeah, but this was my last try I tried "mpv.exe", "mpv" and "Full path".

@justchokingaround
Copy link
Owner

oh wait i just realized you're running it from System32. just run cd in your terminal, and then try running jerry again, it should find the player in path just fine then

@YuuOrKillua
Copy link

im not the op of this post im running mine in my user but the same error occurs even if im in the same dir that jerry is in.
jerryTest

@justchokingaround
Copy link
Owner

try adding bash to windows terminal

image

@YuuOrKillua
Copy link

Did everything you said.
image

@YuuOrKillua
Copy link

And here is how mine .config is.
image

@justchokingaround
Copy link
Owner

can you update to the latest version, it should be fixed now: jerry -u (run ur terminal as admin first)

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

Oh sorry my bad. I got it, my mistake now it is working sorry.

Thank U <3

@justchokingaround
Copy link
Owner

i just pushed the code 2 mins ago, no worries. it's a bug i didn't notice before. @ninko76 can you check my previous comment and lmk if it fixed your issue?

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

well it works now but i think mpv is still not working (for me).
image

And when i go to update it says:
image

For context i did in powershell first git bash appears and close really fast i cannot even print it.

@justchokingaround
Copy link
Owner

oh yeah wait, i somehow fucked up a previous commit i think lol. also you should rename jerry.sh to jerry in path mv /usr/bin/jerry.sh /usr/bin/jerry

@YuuOrKillua
Copy link

This wont cause a bug?
image

@justchokingaround
Copy link
Owner

it shouldn't

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

image

@justchokingaround
Copy link
Owner

idk how powershell works so i can't help u much with that. if u use it from the windows terminal with bash, then i can help. also i just fixed the mpv bug, it should work fine now

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

Oh okay yeah in bash works fine at least the jerry thing im going to update it.
image

@YuuOrKillua
Copy link

I have a question, in my powershell i can call mpv and it shows me that its there:
image
But in bash it gives me this:
image

Or am I just writing wrong for bash.

@justchokingaround
Copy link
Owner

what you can do is just symlink mpv.exe to mpv in bash, since you installed it with scoop. ln -sf $(which mpv.exe) /usr/bin/mpv

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

I did what you told me to and yes mpv now is working on bash the jerry is not giving the mpv not found.
image
But still does not work. (I tried to change "mpv.exe" for "mpv" none worked)
And none give me the mpv not found error.

@justchokingaround
Copy link
Owner

can u send me the last snippet of the log so i can check where it fails? just don't accidentally leak your anilist token.

sh -x $(which jerry)

@YuuOrKillua
Copy link

barbo@DESKTOP-9F2VUN1 MINGW64 ~/bin
$ sh -x $(which jerry)

  • JERRY_VERSION=1.9.9
  • anilist_base=https://graphql.anilist.co
  • config_file=/c/Users/barbo/.config/jerry/jerry.conf
  • jerry_editor=
  • tmp_dir=/tmp/jerry
  • tmp_position=/tmp/jerry_position
  • trap cleanup EXIT INT TERM
  • applications=/c/Users/barbo/.local/share/applications/jerry
  • images_cache_dir=/tmp/jerry/jerry-images
  • command -v bat
  • display=less
  • case "$(uname -s)" in
    ++ uname -s
  • separator=';'
  • path_thing=
  • sed=sed
  • command -v notify-send
  • notify=false
  • dep_ch grep sed curl fzf mpv
  • for dep in "$@"
  • command -v grep
  • for dep in "$@"
  • command -v sed
  • for dep in "$@"
  • command -v curl
  • for dep in "$@"
  • command -v fzf
  • for dep in "$@"
  • command -v mpv
  • '[' '' = true ']'
  • configuration
  • '[' -n '' ']'
  • config_dir=/c/Users/barbo/.config/jerry
  • '[' -n '' ']'
  • data_dir=/c/Users/barbo/.local/share/jerry
  • '[' '!' -d /c/Users/barbo/.local/share/jerry ']'
  • '[' -f /c/Users/barbo/.config/jerry/jerry.conf ']'
  • . /c/Users/barbo/.config/jerry/jerry.conf
    ++ player=mpv
    ++ player_arguments=
    ++ chafa_options=
    ++ show_adult_content=false
    ++ provider=yugen
    ++ download_dir=/c/Users/barbo/bin
    ++ manga_dir=/c/Users/barbo/.local/share/jerry/jerry-manga
    ++ manga_format=image
    ++ manga_opener=feh
    ++ history_file=/c/Users/barbo/.local/share/jerry/jerry_history.txt
    ++ subs_language=english
    ++ use_external_menu=false
    ++ image_preview=false
    ++ json_output=false
    ++ sub_or_dub=sub
    ++ score_on_completion=false
    ++ discord_presence=false
    ++ presence_script_path=jerrydiscordpresence.py
  • '[' -z mpv ']'
  • '[' -z yugen ']'
  • '[' -z /c/Users/barbo/bin ']'
  • '[' -z /c/Users/barbo/.local/share/jerry/jerry-manga ']'
  • '[' -z image ']'
  • '[' -z feh ']'
  • '[' -z /c/Users/barbo/.local/share/jerry/jerry_history.txt ']'
  • '[' -z english ']'
    ++ printf %s english
    ++ cut -c2-
  • subs_language=nglish
  • '[' -z false ']'
  • '[' -z false ']'
  • '[' -z false ']'
  • '[' -z sub ']'
  • '[' -z false ']'
  • '[' '' = false ']'
  • '[' -z false ']'
  • '[' -z jerrydiscordpresence.py ']'
  • case "$(uname -s)" in
    ++ uname -s
  • '[' -z '' ']'
  • chafa_options='-f symbols'
  • '[' -z false ']'
  • query=
  • '[' 0 -gt 0 ']'
    ++ printf %s ''
    ++ tr ' ' -
    ++ sed 's/^-//g'
  • query=
  • case "$provider" in
  • provider=yugen
  • '[' false = true ']'
  • main
  • '[' -z '' ']'
  • check_credentials
  • '[' -f /c/Users/barbo/.local/share/jerry/anilist_token.txt ']'
    ++ cat /c/Users/barbo/.local/share/jerry/anilist_token.txt
  • access_token=$'\026\026'
  • '[' -z $'\026\026' ']'
  • '[' -f /c/Users/barbo/.local/share/jerry/anilist_user_id.txt ']'
    ++ cat /c/Users/barbo/.local/share/jerry/anilist_user_id.txt
  • user_id=
  • '[' -z $'\026\026' ']'
  • '[' -z '' ']'
    ++ curl -s -X POST https://graphql.anilist.co -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Bearer ' -d '{"query":"query { Viewer { id } }"}'
    ++ sed -nE 's@."id":([0-9]).*@\1@p'
  • user_id=
  • echo ''
  • '[' -z $'\026\026' ']'
  • '[' -z '' ']'
  • exit 1
  • cleanup
  • rm -rf /tmp/jerry
  • '[' false = true ']'

@justchokingaround
Copy link
Owner

oh, ure not logged in properly, something failed. do rm -rf ~/.local/share/jerry and try to login again

@YuuOrKillua
Copy link

YuuOrKillua commented May 3, 2024

Oh i did is working now that option did not apear the last time i tried could be because i did it in powershell?

Well thank you for helping me.

@justchokingaround
Copy link
Owner

yeah it could be. ps causes unexpected behavior and im not knowledgeable enough to explain why some stuff may or may not happen when using it

@ninko76
Copy link
Author

ninko76 commented May 3, 2024

i just pushed the code 2 mins ago, no worries. it's a bug i didn't notice before. @ninko76 can you check my previous comment and lmk if it fixed your issue?

It's still the same, should I reinstall it somehow?
Screenshot 2024-05-03 110524

@ninko76
Copy link
Author

ninko76 commented May 3, 2024

Or is there a log I can get you?

@justchokingaround
Copy link
Owner

yeah just run sh -x $(which jerry) and send me the last part (make sure u don't send ur token)

Repository owner deleted a comment from ninko76 May 6, 2024
@justchokingaround
Copy link
Owner

so i deleted your comment bc it contained your token @ninko76 (it appears several times in the log, so just removing it the first time isnt enough). it looks like the authentication fails and ur user_id is empty. try resetting ur credentials entirely, i think that should fix the problem. rm -rf ~/.local/share/jerry and then just run jerry again and follow its instructions

@Qerewe
Copy link

Qerewe commented Jun 7, 2024

I had the same problem as original OP with the current version (1.9.9 currently). It worked perfectly until I tried adding the discordpresence.py, which required me to make a config file, and it started giving the same "mpv not found" error after setting it up. I tried setting discord presence back to false in the config file and deleting the .py file but it kept not working. I was able to fix it by going to the .config folder and deleting the jerry folder. It seems just the existence of the config file made it not work

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

4 participants