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