Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to start jtop #17

Closed
oak-tree opened this issue Jun 12, 2019 · 2 comments
Closed

failed to start jtop #17

oak-tree opened this issue Jun 12, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@oak-tree
Copy link

oak-tree commented Jun 12, 2019

Hey,
The idea looks great but it failed to run on Jetson Xavier jetpack version 4.2 python 3.6.7

Extra logs info

  Running setup.py develop for jetson-stats
Successfully installed jetson-stats
   * Copy jetson_variables and jetson_performance
   * Copy jetson_env.sh in /etc/profile.d/
   * Copy jetson_variables and other scripts
DONE!
green@greeneye--dev2:~/stress/jetson_stats$ jtop
ERROR:jtop.jtop:Attribute error
Traceback (most recent call last):
  File "/home/green/stress/jetson_stats/jtop/jtop.py", line 222, in run
    self._jetsonstats = self.decode(tegrastats_data)
  File "/home/green/stress/jetson_stats/jtop/jtop.py", line 429, in decode
    ram_status, text = self._RAM(text)
  File "/home/green/stress/jetson_stats/jtop/jtop.py", line 375, in _RAM
    ram_string = re.search(r'RAM (.+?)B', text).group()
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "/usr/local/bin/jtop", line 11, in <module>
    load_entry_point('jetson-stats', 'console_scripts', 'jtop')()
  File "/home/green/stress/jetson_stats/jtop/__main__.py", line 152, in main
    curses.wrapper(gui, args, jetson)
  File "/usr/lib/python3.6/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/green/stress/jetson_stats/jtop/__main__.py", line 96, in gui
    pages.draw(tegra)
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 46, in wrapped
    return func(self, *args, **kwargs)
  File "/home/green/stress/jetson_stats/jtop/jtopgui.py", line 192, in draw
    page(self.stdscr, stat)
  File "/home/green/stress/jetson_stats/jtop/jtopgui.py", line 116, in all_info
    line_counter = plot_CPUs(stdscr, line_counter, jetson.stats['CPU'], width)
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 81, in wrapped
    return func(*args, **kwargs)
  File "/home/green/stress/jetson_stats/jtop/jtopguimenu.py", line 53, in plot_CPUs
    linear_percent_gauge(stdscr, gauge, max_bar, offest + off_idx, start)
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 81, in wrapped
    return func(*args, **kwargs)
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 160, in linear_percent_gauge
    stdscr.addstr(offset, start, ("{short_name:" + str(name_size) + "}").format(short_name=gauge['name']), curses.color_pair(color_name))
TypeError: integer argument expected, got float
green@greeneye--dev2:~/stress/jetson_stats$ sudo ./install.sh --uninstall

sudo jtop --debug
Traceback (most recent call last):
  File "/usr/local/bin/jtop", line 11, in <module>
    load_entry_point('jetson-stats', 'console_scripts', 'jtop')()
  File "/home/green/stress/jetson_stats/jtop/__main__.py", line 152, in main
    curses.wrapper(gui, args, jetson)
  File "/usr/lib/python3.6/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/green/stress/jetson_stats/jtop/__main__.py", line 96, in gui
    pages.draw(tegra)
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 46, in wrapped
    return func(self, *args, **kwargs)
  File "/home/green/stress/jetson_stats/jtop/jtopgui.py", line 187, in draw
    self.header()
  File "/home/green/stress/jetson_stats/jtop/jtopguilib.py", line 81, in wrapped
    return func(*args, **kwargs)
  File "/home/green/stress/jetson_stats/jtop/jtopgui.py", line 210, in header
    board_info = os.environ["JETSON_DESCRIPTION"] + " - Jetpack " + os.environ["JETSON_JETPACK"] + " [L4T " + os.environ["JETSON_L4T"] + "]"
  File "/usr/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'JETSON_DESCRIPTION'

@rbonghi
Copy link
Owner

rbonghi commented Jun 13, 2019

Hi @oak-tree,

how did you install jetson-stats?

I suggest to use:

sudo -H pip install jetson-stats

and do not use ./install.sh

Keep me posted if you fix your error

@rbonghi
Copy link
Owner

rbonghi commented Jun 13, 2019

Already found the bug!

I will fix soon

@rbonghi rbonghi added the bug Something isn't working label Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants