rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series
https://rnext.it/jetson_stats
GNU Affero General Public License v3.0
2.14k stars 261 forks source link

_curses.error: init_pair() returned ERR #141

Closed zinwalin closed 1 year ago

zinwalin commented 3 years ago

Jetson Nano 4GB

` jetson@nano:~$ jtop Traceback (most recent call last): File "/usr/local/bin/jtop", line 11, in load_entry_point('jetson-stats==3.1.0', 'console_scripts', 'jtop')() File "/usr/local/lib/python2.7/dist-packages/jtop/main.py", line 148, in main curses.wrapper(JTOPGUI, jetson, [ALL, GPU, CPU, MEM, CTRL, INFO], init_page=args.page, loop=args.loop, seconds=LOOP_SECONDS) File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper return func(stdscr, *args, **kwds) File "/usr/local/lib/python2.7/dist-packages/jtop/gui/jtopgui.py", line 76, in init curses.init_pair(1, curses.COLOR_RED, curses.COLOR_BLACK) _curses.error: init_pair() returned ERR

`

` jetson@nano:~$ jetson_release

rbonghi commented 3 years ago

Thank you @zinwalin I will check soon

Mikystars commented 2 years ago

I get the exact same error. Any updates?

lizhiyong2000 commented 1 year ago

Maybe this is not a bug, you need to run jtop on a GUI desktop envrionment.

rbonghi commented 1 year ago

I think, like issue #123, you need to run before jtop export TERM='xterm-256color'