Giter Club home page Giter Club logo

Comments (14)

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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.

comradef191 avatar comradef191 commented on August 28, 2024

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.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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.

image

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:

image

This should work, can you pull the latest repo and try again?

from hyfetch.

comradef191 avatar comradef191 commented on August 28, 2024

WhooaAH Doesnt break with an error now but holy FUCK
colours are just
broke.
Coloursbroke1
coloursbroke2

from hyfetch.

comradef191 avatar comradef191 commented on August 28, 2024

oh hey you can actually complete the entire thing

CursedHyfetch

holy fuck this is cursed lmao

from hyfetch.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

Lol that's so weird

I'll look into this on a Windows 10 vm tomorrow

from hyfetch.

slackingfred avatar slackingfred commented on August 28, 2024

I am also unable to run it on Windows (11, 22621.819).
It exits with ModuleNotFoundError: No module named 'termios'

from hyfetch.

leohearts avatar leohearts commented on August 28, 2024

same error with @slackingfred .

  • OS: Python 3.11.0
  • OS Version: Windows 10.0.22000 N/A Build 22000
  • pip 22.3

Screenshot_20221123_034135

from hyfetch.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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.

image

from hyfetch.

slackingfred avatar slackingfred commented on August 28, 2024

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.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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.

slackingfred avatar slackingfred commented on August 28, 2024

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.

hykilpikonna avatar hykilpikonna commented on August 28, 2024

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...

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.

image

from hyfetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.