Closed mdella closed 1 year ago
HyFetch supports Python 3.7 and above, but not 3.6. Python 3.6 was released 6 years ago in 2016 and reached end-of-life around one year ago on Dec 2021. Please install python 3.7 or above.
Specifically, from __future__ import annotations
is a feature new in 3.7, which adds support for typing annotations that make development much more stable.
You can follow this guide to install python 3.9 on AlmaLinux 8: https://osnote.com/how-to-install-python-on-almalinux-8/
Yep, unlikely to happen across our fleet of VMs (>1000) so looks like I'll have to go back to something else for the rare login banner. Thanks however for the pointer of the issue. Might want to mention that a default supported RHEL 8 release is not supported directly by your application without a custom upgrade.
So I spun up a separate VM to give it a try (installing Python3.9) and didn't get much further...
[root@rancid .ssh]# python3.9 --version Python 3.9.7 [root@rancid .ssh]# more /usr/local/bin/hyfetch
import re import sys
from hyfetch.main import run
if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])
sys.exit(run())
[root@rancid .ssh]# /usr/local/bin/hyfetch -vv
Traceback (most recent call last):
File "/usr/local/bin/hyfetch", line 7, in
That's weird... I wonder why it says No module named 'hyfetch'
even though it's installed. How did you install python39 and how did you install hyfetch? If I know these details maybe I can reproduce the issue...
FYI, I successfully ran hyfetch on both AlmaLinux and RockyLinux 8.6 on my schools' remote labs at UofT and YorkU, and none of them had issues with it.
Description
If you're suggesting a new feature then just a description will suffice.
Neofetch version
1.4.3
Screenshot
[root@rancid .ssh]# pip3 install hyfetch WARNING: Running pip install with root privileges is generally not a good idea. Try
from hyfetch.main import run
File "/usr/local/lib64/python3.6/site-packages/hyfetch/init.py", line 1
from future import annotations
^
SyntaxError: future feature annotations is not defined
pip3 install --user
instead. Collecting hyfetch Downloading https://files.pythonhosted.org/packages/a7/18/c4e9b81f49b447b70941362ef0fa808b2ef96f047f4230d94faf8edbf023/HyFetch-1.4.3-py3-none-any.whl (261kB) 100% |████████████████████████████████| 266kB 3.9MB/s Collecting typing-extensions (from hyfetch) Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from hyfetch) Installing collected packages: typing-extensions, hyfetch Successfully installed hyfetch-1.4.3 typing-extensions-4.1.1 [root@rancid .ssh]# find / -name hyfetch -print /usr/local/bin/hyfetch /usr/local/lib64/python3.6/site-packages/hyfetch [root@rancid .ssh]# /usr/local/bin/hyfetch Traceback (most recent call last): File "/usr/local/bin/hyfetch", line 7, inConfig file
Verbose log
neofetch -vv 2> neofetchlog
neofetchlog
to pastebin, gist or equivalent.Doesn't get past the missing "from" so none of the debugging requests work as well. This was a brand new fresh pip3 install.