pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.34k stars 530 forks source link

Ani-cli not working at all on Windows 11 (Installed with Scoop) #1353

Closed potatofinder closed 1 month ago

potatofinder commented 1 month ago

I downloaded ani-cli and all of the other recommended packages from scoop, but when I try to run it, it says "/bin/bash: C:\Users\myname\scoop\apps\ani-cli\current\ani-cli: No such file or directory" This happens on both powershell and the normal command prompt. The program is installed, because when I run the command in git bash, it works. But it doesn't fully work, it goes up to when it asks me to pick an episode and never loads. What's happening?

potatofinder commented 1 month ago

Powershell and command prompt still not working, but I got git bash to work.

ykhan21 commented 1 month ago

@potatofinder, replace @bash with @"C:\Users\<user>\scoop\apps\git\current\bin\bash.exe" in the ani-cli.cmd file if you want to run it with powershell.

The issue is that the scoop/shims/ani-cli.cmd shim that gets called when you enter ani-cli in powershell calls wsl bash. Git bash doesn't have this problem because git bash comes with a normal bash shell which gets invoked instead of the wsl bash.

There is a PR to fix this on scoop's side: https://github.com/ScoopInstaller/Extras/pull/13342, which automatically does the wsl bash -> git for windows' bash replacement.

DRSDavidSoft commented 1 month ago

Not relevant but I personally went with the no-scoop method and installed from source: #1357, it was better for me since I already had all the required components on my system