ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

Script unable to locate it's own libraries on windows..

Open THEGOLDENPRO opened this issue 4 years ago • 13 comments

Version: 3 OS: Windows 10 Shell: git bash (as recommended to) Anime: None

New v3 ani-cli won't work on windows 10. I've uninstalled the previous ani-cli version and followed the readme install steps to install the new version 3 but I get this error when running:

C:\ProgramData\scoop\apps\ani-cli\current\ani-cli: line 470: C:\ProgramData\scoop\apps\ani-cli\current/players/player_mpv: No such file or directory
C:\ProgramData\scoop\apps\ani-cli\current\ani-cli: line 53: err: command not found

I can confirm that this is indeed version 3, version 1.9 worked fine. I can also confirm that I updated on my android phone and it worked completely fine, just on windows I'm having this issue.🙁

  • I followed these steps: https://github.com/pystardust/ani-cli/tree/master#windows
  • I also installed it via scoop using these steps: https://github.com/pystardust/ani-cli/tree/v3#windows

image image

THEGOLDENPRO avatar Jun 18 '22 23:06 THEGOLDENPRO

Can you try running /usr/local/bin/ani-cli in git bash?

Derisis13 avatar Jun 20 '22 16:06 Derisis13

I don't know if this will work for you cause it did work for me, but you could try copying the files from the folder where git installed ani-cli from (in this case the Program Files/Git/usr/local/bin/ani-cli) to the scoop folder like I did here: image_2022-06-21_015107228 I removed them from their respective folders and placed them all at the same folder, which in this case the "current" or "3.0" folder, they're the same I think. This is just a temporary fix though, so this will only work for now. (Tested this on Windows 11 21H2)

YuleTomalin avatar Jun 20 '22 18:06 YuleTomalin

Can you try running /usr/local/bin/ani-cli in git bash?

Umm, it says no directory found, I knew the directory didn't exist. image

THEGOLDENPRO avatar Jun 20 '22 21:06 THEGOLDENPRO

I don't know if this will work for you cause it did work for me, but you could try copying the files from the folder where git installed ani-cli from (in this case the Program Files/Git/usr/local/bin/ani-cli) to the scoop folder like I did here: image_2022-06-21_015107228 I removed them from their respective folders and placed them all at the same folder, which in this case the "current" or "3.0" folder, they're the same I think. This is just a temporary fix though, so this will only work for now. (Tested this on Windows 11 21H2)

Thanks, I'm going to try this.

THEGOLDENPRO avatar Jun 20 '22 21:06 THEGOLDENPRO

@YuleTomalin Thanks so much, that worked. Turns out scoop only downloaded the "ani-cli" file and ignored the rest of the files, I've never used this kind of stuff so I'm not quite sure why but hey git cloning and moving the files to the scoop files worked.

When I Installed it this way: image

Just moving the files in myself: image

I hope you guys can find out the issue, if you want me to provide anything else to help just ask.

THEGOLDENPRO avatar Jun 20 '22 21:06 THEGOLDENPRO

So did it turn out to be a scoop issue? If so you can try contacting the scoop package maintainer to issue a fix

Derisis13 avatar Jun 21 '22 00:06 Derisis13

I had the same problem and this is how I resolved it. It seems like its a problem with scoop but I'll leave this here just incase it helps someone

image

  • Downloaded the lastest source code

  • Navigate to the directory where it says the file is missing C:\Users\Ashwi\scoop\apps\ani-cli\ in my case image

  • Copy the libraries from the lib folder in the source code image

  • Create a folder called players in the current folder, and copy everything to the players folder as well as the current folder. image

ashwnn avatar Jun 24 '22 01:06 ashwnn

@xxiz yep can confirm that temporary fixes the issue. 👍

THEGOLDENPRO avatar Jun 24 '22 05:06 THEGOLDENPRO

So did it turn out to be a scoop issue? If so you can try contacting the scoop package maintainer to issue a fix

Yeah but also idk if it's just me, but when I followed the windows install instructions on the repo I couldn't install as I stated in my original message so I used scoop instead. It said it couldn't find that usr folder as stated here: https://github.com/pystardust/ani-cli/issues/775#issuecomment-1160860989

THEGOLDENPRO avatar Jun 24 '22 05:06 THEGOLDENPRO

I ran into the same issue using macOS as well, the previous version was working fine though.

hamedrajhi avatar Jul 16 '22 13:07 hamedrajhi

I ran into the same issue using macOS as well, the previous version was working fine though.

just follow the macOS instructions from the readme and everything should be fine

justchokingaround avatar Jul 16 '22 19:07 justchokingaround

It's an issue with the latest version, after updating the script I ran into this error message "/usr/local/bin/ani-cli: line 1: 404:: command not found" Screen Shot 2022-07-16 at 9 53 42 PM

I reinstalled ani-cli following the instructions in the redeem but the issue remains.

so I tried installing version 2 instead and it worked fine, updated the script for the second time just to test it and it broke again.

hamedrajhi avatar Jul 16 '22 21:07 hamedrajhi

We are now back to onefile.. please follow new installation commands again... Or better wait for scoop package.. closing this issue now

CoolnsX avatar Jul 19 '22 20:07 CoolnsX