Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError upon first execution #298

Open
1 task done
pwnkin opened this issue May 24, 2024 · 0 comments
Open
1 task done

OSError upon first execution #298

pwnkin opened this issue May 24, 2024 · 0 comments

Comments

@pwnkin
Copy link

pwnkin commented May 24, 2024

Describe the bug

Upon the first execution of HyFetch: hyfetch for a second it allows the selection of a flag, then crashes with the following output:

Traceback (most recent call last):
File "/home/user/.local/bin/hyfetch", line 8, in
sys.exit(run())
^^^^^
File "/home/user/.local/share/pipx/venvs/hyfetch/lib/python3.12/site-packages/hyfetch/main.py", line 375, in run
config = create_config() if args.config else check_config(args.config_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/pipx/venvs/hyfetch/lib/python3.12/site-packages/hyfetch/main.py", line 34, in check_config
return create_config()
^^^^^^^^^^^^^^^
File "/home/user/.local/share/pipx/venvs/hyfetch/lib/python3.12/site-packages/hyfetch/main.py", line 173, in create_config
preset = literal_input(f'Which {tmp} do you want to use? ', opts, 'rainbow', show_ops=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/pipx/venvs/hyfetch/lib/python3.12/site-packages/hyfetch/neofetch_util.py", line 63, in literal_input
selection = input('> ').lower() or default
^^^^^^^^^^^
File "/home/user/.local/share/pipx/venvs/hyfetch/lib/python3.12/site-packages/hyfetch/termenv.py", line 126, in handler
raise IOError()
OSError

  • Does this issue still occur in the master branch? (Required)

Expected behavior

I expect to be able to select a flag, and the settings that follow it.

System Information

  • Operating System: Arch Linux
  • Python Version: Python 3.12.3
  • HyFetch Version: 1.4.11

Config file

N/A, does not exist

Additional context

Installing from several sources does not help, i've installed from pip, the arch repositories, and git itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant