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

Error on jetson nano #496

Open
sushruth13 opened this issue Feb 27, 2024 · 1 comment
Open

Error on jetson nano #496

sushruth13 opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sushruth13
Copy link

Describe the bug

Jtop does not start, I cant restart the service. Everytime I restart the service, the service exits in a few minutes
A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

these are the journal logs
Feb 27 13:26:35 jet6b-desktop systemd[1]: Started jtop service.
Feb 27 13:26:35 jet6b-desktop jtop[5814]: [INFO] jtop.service - jetson_stats 4.2.6 - server loaded
Feb 27 13:26:35 jet6b-desktop jtop[5814]: [INFO] jtop.service - Running on Python: 3.6.9
Feb 27 13:26:35 jet6b-desktop jtop[5814]: [INFO] jtop.core.hardware - Hardware detected aarch64
Feb 27 13:26:35 jet6b-desktop jtop[5814]: Skip for setup.py
Feb 27 13:26:35 jet6b-desktop jtop[5814]: Traceback (most recent call last):
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/bin/jtop", line 8, in
Feb 27 13:26:35 jet6b-desktop jtop[5814]: sys.exit(main())
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/lib/python3.6/dist-packages/jtop/main.py", line 104, in main
Feb 27 13:26:35 jet6b-desktop jtop[5814]: server = JtopServer(force=args.force)
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/lib/python3.6/dist-packages/jtop/service.py", line 281, in init
Feb 27 13:26:35 jet6b-desktop jtop[5814]: self.board = {'hardware': get_hardware()}
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/lib/python3.6/dist-packages/jtop/core/hardware.py", line 71, in get_hardware
Feb 27 13:26:35 jet6b-desktop jtop[5814]: jetson = get_jetson_variables()
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/lib/python3.6/dist-packages/jtop/core/jetson_variables.py", line 301, in get_jetson_variables
Feb 27 13:26:35 jet6b-desktop jtop[5814]: part_number, jetson_part_number = get_part_number()
Feb 27 13:26:35 jet6b-desktop jtop[5814]: File "/usr/local/lib/python3.6/dist-packages/jtop/core/jetson_variables.py", line 277, in get_part_number
Feb 27 13:26:35 jet6b-desktop jtop[5814]: bus = SMBus(bus_number, force=True)
Feb 27 13:26:35 jet6b-desktop jtop[5814]: NameError: name 'SMBus' is not defined
Feb 27 13:26:35 jet6b-desktop systemd[1]: jtop.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 13:26:35 jet6b-desktop systemd[1]: jtop.service: Failed with result 'exit-code'.
Feb 27 13:26:43 jet6b-desktop systemd[1]: jtop.service: Service hold-off time over, scheduling restart.
Feb 27 13:26:43 jet6b-desktop systemd[1]: jtop.service: Failed to schedule restart job: Unit jtop.service not found.
Feb 27 13:26:43 jet6b-desktop systemd[1]: jtop.service: Failed with result 'exit-code'.

If applicable, add screenshots to help explain your problem.

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

Board

Output from jetson_release -v:

  • jetson-stats version: [e.g. 1.8]
  • P-Number: [e.g. pXXXX-XXXX]
  • Module: [e.g. NVIDIA Jetson XXX]
  • Jetpack: [e.g. 4.3]
  • L4T: [e.g. 5.2.1]

Log from jtop.service

Attach here the output from: journalctl -u jtop.service -n 100 --no-pager

Log from jetson-stats installation

Attach here the output from: sudo -H pip3 install --no-cache-dir -v -U jetson-stats

RAW Data

File from jtop --error-log attached

@sushruth13 sushruth13 added the bug Something isn't working label Feb 27, 2024
@rbonghi
Copy link
Owner

rbonghi commented Mar 4, 2024

Hi @sushruth13

Can you please try installing smbus using this command and then reboot the jtop service?

sudo pip3 install smbus2

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