Comments (14)
Oh sorry, I forgot to add psutil
to the list of dependencies 😢
I just added psutil
dependency for windows-specific users in commit a8352d1.
Can you try python -m hyfetch
again after installing psutil with pip install psutil
?
from hyfetch.
Updated repo and installed psutil,
Powershell:
/c/Users/f191/Desktop/hyfetch/hyfetch/scripts/neowofetch: line 1: ../../neofetch: No such file or directory
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\f191\Desktop\hyfetch\hyfetch\__main__.py", line 4, in <module>
main.run()
File "C:\Users\f191\Desktop\hyfetch\hyfetch\main.py", line 364, in run
config = check_config()
File "C:\Users\f191\Desktop\hyfetch\hyfetch\main.py", line 34, in check_config
return create_config()
File "C:\Users\f191\Desktop\hyfetch\hyfetch\main.py", line 87, in create_config
asc = get_distro_ascii()
File "C:\Users\f191\Desktop\hyfetch\hyfetch\neofetch_util.py", line 233, in get_distro_ascii
return normalize_ascii(run_command(cmd, True))
File "C:\Users\f191\Desktop\hyfetch\hyfetch\neofetch_util.py", line 211, in run_command
return check_output(full_cmd).decode().strip()
File "C:\Program Files\Python310\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\Python310\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/f191/Desktop/hyfetch/hyfetch/scripts/neowofetch print_ascii']' returned non-zero exit status 127.
Command Prompt
Terminal outputs cmd.exe doesn't support RGB colors, restarting in MinTTY...
; Window briefly pops up before closing
from hyfetch.
Hmm... exit code 127 probably means that bash was launched but it can't find /c/Users/f191/Desktop/hyfetch/hyfetch/scripts/neowofetch
Oh right, hyfetch/hyfetch/scripts/neowofetch
is actually symbolically linked to ../../neofetch
, but windows doesn't support symbolic links, so it created a text file containing the path instead.
I don't know how to detect regular files that are supposed to be symbolic links in python yet, so I'll hard-code the link for now:
This should work, can you pull the latest repo and try again?
from hyfetch.
WhooaAH Doesnt break with an error now but holy FUCK
colours are just
broke.
from hyfetch.
oh hey you can actually complete the entire thing
holy fuck this is cursed lmao
from hyfetch.
Lol that's so weird
I'll look into this on a Windows 10 vm tomorrow
from hyfetch.
I am also unable to run it on Windows (11, 22621.819).
It exits with ModuleNotFoundError: No module named 'termios'
from hyfetch.
same error with @slackingfred .
- OS: Python 3.11.0
- OS Version: Windows 10.0.22000 N/A Build 22000
- pip 22.3
from hyfetch.
same error with @slackingfred .
- OS: Python 3.11.0
- OS Version: Windows 10.0.22000 N/A Build 22000
- pip 22.3
Thanks for reporting the issue! Should be fixed now.
from hyfetch.
It still doesn't run, either on Windows Terminal or Git Bash.
The error has changed, though: subprocess.CalledProcessError: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/<redacted>/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/neofetch print_ascii']' returned non-zero exit status 127.
Looks like the installation script didn't create the directory structure expected by neofetch_util
.
from hyfetch.
It still doesn't run, either on Windows Terminal or Git Bash.
The error has changed, though:
subprocess.CalledProcessError: Command '[WindowsPath('C:/Program Files/Git/bin/bash.exe'), '-c', '/c/Users/<redacted>/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/neofetch print_ascii']' returned non-zero exit status 127.
Looks like the installation script didn't create the directory structure expected by
neofetch_util
.
127 means command not found or not executable... is your git bash installed at C:/Program Files/Git/bin/bash.exe
?
from hyfetch.
Or can you check if /c/Users/<redacted>/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/neofetch
exists and is executable? Thanks
from hyfetch.
Or can you check if
/c/Users/<redacted>/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/neofetch
exists and is executable? Thanks
Git Bash is at C:/Program Files/Git/bin/bash.exe
, but neofetch
script does not exist.
There are two neowofetch
files found, but they both point to ../../neofetch
which is nonexistent:
%localappdata%/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/Scripts/neowofetch
%localappdata%/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/hyfetch/scripts/neowofetch
Looks like the setup script is somewhat incompatible with Store-installed Python...
from hyfetch.
Git Bash is at
C:/Program Files/Git/bin/bash.exe
, butneofetch
script does not exist.There are two
neowofetch
files found, but they both point to../../neofetch
which is nonexistent:%localappdata%/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/Scripts/neowofetch %localappdata%/Packages/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/LocalCache/local-packages/Python38/site-packages/hyfetch/scripts/neowofetch
Looks like the setup script is somewhat incompatible with Store-installed Python...
As it turns out, different versions/implementations of python package/install script files to different locations (as reported in #84 where their installed version expanded the symlink). I've added multiple checks and hope they should cover all possible paths.
from hyfetch.
Related Issues (20)
- Void Package
- Rename the "neowofetch" command HOT 7
- Cannot render ascii art with certain unicode characters on Windows
- Interest in receiving a Rewrite-it-in-Rust (RIIR) port? HOT 3
- OSError upon first execution
- New stable release? HOT 8
- Xenogender flag request
- Running via cmd in Windows Terminal starts MinTTY unnecessarily HOT 1
- --package_managers "off" and "tiny" are broken
- dnf fast path is sometime wrong on opensuse
- Add the Mauna Linux Distro and your logo
- Hyfetch shows my Macs as Hackintosh but Neofetch don't HOT 1
- Console colours don't reset properly after having executed the command.
- Console colours don't reset properly after having executed the command.
- Add Black Mesa distro to match the existing Aperture Science option.
- Lunar Linux shows the resolution 8 times
- BSD packages? HOT 2
- does this support windows 11? HOT 2
- Add Linux Lite distro
- add more rainbow flavor with lolcat?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyfetch.