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 command doesn't see ani-cli app file (No such file or directory) #1352

Closed mozkohor closed 1 month ago

mozkohor commented 1 month ago

Metadata (please complete the following information) Version: 4.8 OS: Windows 11

Describe the bug Running ani-cli returns with error saying that the ani-cli file doesn't exist (screenshot for more context).

Steps To Reproduce

  1. Run ani-cli

Expected behavior It should run ani-cli

Screenshots (if applicable; you can just drag the image onto github. remove the following line if not needed) image image

amad3us47 commented 1 month ago

same issue here

amad3us47 commented 1 month ago

found the problem its wsl on my side whenever ani-cli asks for bash it goes directly to wsl

any fixes for this?

amad3us47 commented 1 month ago

temporary fix - disable linux subsystem on your machine and restart or (it might not work -> find a way to directly reach the windows bash executable)

ykhan21 commented 1 month ago

Edit:

@mozkohor and @amad3us47, see the updated Windows installation guide in the README. Raise a new issue if you have any errors.

Original comment:

Replace @bash with @"%GIT_INSTALL_ROOT%\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.

You could also do this: https://github.com/pystardust/ani-cli/issues/1330#issuecomment-2109081038.