hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.15k stars 90 forks source link

OSError upon first execution #298

Open pwnkin opened 1 month ago

pwnkin commented 1 month ago

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

Expected behavior

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

System Information

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.