'No such file or directory' error occurs when running hyfetch on Windows #84
Closed
Description
Description
hyfetch is installed by pip. After I maked a workground for #83, it throws <path of python>/Lib/site-packages/neofetch: No such file or directory
. I tried copy <path of python>/Scripts/neowofetch
to <path of python>/Lib/site-packages/neofetch
, the script runs successfully but freezed like #82.
$ hyfetch
/usr/bin/bash: line 1: /c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch: No such file or directory
Error: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch ascii_distro_name']' returned non-zero exit status 127.
Traceback (most recent call last):
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\main.py", line 429, in run
neofetch_util.run(preset, config.color_align, config.backend)
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 265, in run
return run_neofetch(preset, alignment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 279, in run_neofetch
asc = get_distro_ascii()
^^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 239, in get_distro_ascii
det = distro_detector.detect(distro or get_distro_name())
^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 260, in get_distro_name
return run_neofetch_cmd('ascii_distro_name', True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\site-packages\hyfetch\neofetch_util.py", line 220, in run_neofetch_cmd
return check_output(full_cmd).decode().strip()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zzz\scoop\apps\python\current\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/zzz/scoop/apps/python/current/Lib/site-packages/neofetch ascii_distro_name']' returned non-zero exit status 127.
- Does this issue still occur in the master branch? (Required if issue)
Neofetch version
7.3.6
Screenshot
See description above and #82.