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

Running from terminal support #30

Closed ghertog closed 4 years ago

ghertog commented 5 years ago

Could it be possible running jtop from a terminal?

From cygwin I get

Traceback (most recent call last): File "/usr/local/bin/jtop", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/jtop/main.py", line 99, in main curses.wrapper(JTOPGUI, args.refresh, jetson, [ALL, GPU, CTRL, INFO], init_page=args.page) File "/usr/lib/python3.6/curses/init.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "/usr/local/lib/python3.6/dist-packages/jtop/gui/jtopgui.py", line 76, in init self.run() File "/usr/local/lib/python3.6/dist-packages/jtop/gui/jtopgui.py", line 86, in run curses.curs_set(0) _curses.error: curs_set() returned ERR

Removing line 86 from jtopgui.py fixes this. But some characters are strange.

rbonghi commented 5 years ago

Hi @ghertog ,

I only used with the default terminal in ubuntu 16.04 and 18.04 and works. I will check soon with cygwin, how I can solve your issue.

ghertog commented 5 years ago

Ok, thanks in advance

rbonghi commented 4 years ago

Hi @ghertog , I think this issue is fixed from jtop release 1.7.10 and also works with the last one version.

If you have again this error, open this issue