You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Piping some simple JSON like [] to jpterm fails like this:
$ echo'[]'| jptermTraceback (most recent call last): File "/home/mattiasb/.local/bin/jpterm", line 6, in <module> jpterm.main() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/jpterm.py", line 231, in main display.main(screen=screen) File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/jpterm.py", line 148, in main self.loop.run() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/main_loop.py", line 287, in run self._run() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/main_loop.py", line 385, in _run self.event_loop.run() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/main_loop.py", line 790, in run self._loop() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/main_loop.py", line 827, in _loop self._watch_files[fd]() File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/raw_display.py", line 417, in <lambda> event_loop, callback, self.get_available_raw_input()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/raw_display.py", line 449, in get_available_raw_input codes = self._get_gpm_codes() + self._get_keyboard_codes() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/raw_display.py", line 523, in _get_keyboard_codes code = self._getch_nodelay() ^^^^^^^^^^^^^^^^^^^^^ File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/raw_display.py", line 661, in _getch_nodelay return self._getch(0) ^^^^^^^^^^^^^^ File "/home/mattiasb/.local/pipx/venvs/jmespath-community-terminal/lib64/python3.12/site-packages/urwid/raw_display.py", line 571, in _getch return ord(os.read(fd, 1)) ^^^^^^^^^^^^^^^^^^^TypeError: ord() expected a character, but string of length 0 found
This was supposedly fixed by #4 but it seems it was not enough.
How to reproduce
To make sure this wasn't something weird on my machine I reproduced
it in a fresh Ubuntu 24.04 container. Swap podman for docker if you
prefer. It should work the same.
Piping some simple JSON like
[]
tojpterm
fails like this:This was supposedly fixed by #4 but it seems it was not enough.
How to reproduce
To make sure this wasn't something weird on my machine I reproduced
it in a fresh Ubuntu 24.04 container. Swap
podman
fordocker
if youprefer. It should work the same.
The text was updated successfully, but these errors were encountered: