Execution of jtop command failed

My Hardware Device: orin nx 8G
software version:JetPack 5.1.4

I have isntalled the jtop command:

sudo apt install python3-pip
sudo pip3 install -U pip
sudo pip3 install -U jetson-stats

and then try to run, jtop run failed:

nvidia@tegra-ubuntu:~$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$ jetson_release
Skip for setup.py
Software part of jetson-stats 4.3.2 - (c) 2024, Raffaello Bonghi
Traceback (most recent call last):
File “/usr/local/bin/jetson_release”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.8/dist-packages/jtop/jetson_release.py”, line 45, in main
jetson = get_jetson_variables()
File “/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py”, line 311, in get_jetson_variables
part_number, jetson_part_number = get_part_number()
File “/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py”, line 287, in get_part_number
bus = SMBus(bus_number, force=True)
NameError: name ‘SMBus’ is not defined

I executed the restart jtop command, but jtop still failed to run and cannot execute normally even after restarting the device:

nvidia@tegra-ubuntu:~$ sudo systemctl restart jtop.service
[sudo] password for nvidia:
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$ systemctl status jtop.service
● jtop.service - jtop service
Loaded: loaded (/etc/systemd/system/jtop.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 1970-01-01 08:08:00 UTC; 6s ago
Process: 2692 ExecStart=/usr/local/bin/jtop --force (code=exited, status=1/FAILURE)
Main PID: 2692 (code=exited, status=1/FAILURE)

The jetson_release command error: NameError: name ‘SMBus’ is not defined. I installed SMbus but still got the same error.

This is the only device that has encountered such a problem. I don’t know why, but I hope to receive help.

Hi jack.yan,

Are you using the devkit or custom board for Orin NX?

Do you mean the issue is specific to the current device? (i.e. you have another device works with jtop)
If so, have you tried to reflash the board to check if it could help?

Hi,KevinFFF:

I`m using our custom board.

Yes, I have another Orin NX board, that can be used normally after installed jtop.

This device has already delivered to someone else, and installing jtop is only to check the status of the device, so I cannot reflash it.

If you cannot reflash the board, please share the detailed steps how do you reproduce the issue on this board as the issue is specific to this device.
It may be caused from you modified something on your board so that it reports error when you install jtop.

Hi,KevinFFF:

Here is my installed step:

sudo apt install nvidia-jetpack
sudo apt install python3-pip
sudo pip3 install -U pip
sudo pip3 install -U jetson-stats

I failed many times during installation, and after multiple failures, I uninstalled python3-pip, and then re executed the install command.

Restart the device after installation is complete.When I execute the jtop command, I find that it cannot be executed properly.

Did you “pip install -U smbus2” ?

1 Like

Hi,whitesscott:

I have tried installing smbus2,it is still not work:

nvidia@tegra-ubuntu:/etc/apt$ sudo pip install -U smbus2
[sudo] password for nvidia: 
Requirement already satisfied: smbus2 in /usr/local/lib/python3.8/dist-packages (0.5.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
nvidia@tegra-ubuntu:/etc/apt$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:/etc/apt$ jetson_release 
Skip for setup.py
Software part of jetson-stats 4.3.2 - (c) 2024, Raffaello Bonghi
Traceback (most recent call last):
  File "/usr/local/bin/jetson_release", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/jtop/jetson_release.py", line 45, in main
    jetson = get_jetson_variables()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 311, in get_jetson_variables
    part_number, jetson_part_number = get_part_number()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 287, in get_part_number
    bus = SMBus(bus_number, force=True)
NameError: name 'SMBus' is not defined

try

cd
sudo systemctl daemon-reload
sudo systemctl enable jtop.service
sudo systemctl restart jtop.service

Hi,whitesscott:

It`s still not work:

nvidia@tegra-ubuntu:~$ sudo systemctl daemon-reload
nvidia@tegra-ubuntu:~$ sudo systemctl enable jtop.service
nvidia@tegra-ubuntu:~$ sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:~$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:~$ jetson_release 
Skip for setup.py
Software part of jetson-stats 4.3.2 - (c) 2024, Raffaello Bonghi
Traceback (most recent call last):
  File "/usr/local/bin/jetson_release", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/jtop/jetson_release.py", line 45, in main
    jetson = get_jetson_variables()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 311, in get_jetson_variables
    part_number, jetson_part_number = get_part_number()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 287, in get_part_number
    bus = SMBus(bus_number, force=True)
NameError: name 'SMBus' is not defined
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ systemctl status jtop.service 
● jtop.service - jtop service
     Loaded: loaded (/etc/systemd/system/jtop.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2025-10-22 08:01:22 UTC; 5s ago
    Process: 3446 ExecStart=/usr/local/bin/jtop --force (code=exited, status=1/FAILURE)
   Main PID: 3446 (code=exited, status=1/FAILURE)

Have you tried the following commands?

$ sudo apt-get update
$ sudo apt-get install python3-smbus

Hi, KevinFFF:

I`m already installed smbus,jtop still not work:

nvidia@tegra-ubuntu:~$ sudo apt-get install python3-smbus
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-smbus is already the newest version (4.1-2build2).
The following packages were automatically installed and are no longer required:
  gdal-data libaec0 libarmadillo9 libarpack2 libavcodec-dev libavformat-dev libavresample-dev libavresample4 libavutil-dev libcfitsio8 libcharls2 libdap25 libdapclient6v5 libdc1394-22-dev
  libepsilon1 libexif-dev libfreexl1 libfyba0 libgdal26 libgdcm-dev libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgl2ps1.4 libgphoto2-dev libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103
  libilmbase-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libkmlbase1 libkmldom1 libkmlengine1 liblept5 liblzma-dev libminizip1 libnetcdf-c++4 libnetcdf15 libogdi4.1
  libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-dnn4.2 libopencv-features2d4.2 libopencv-flann4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2
  libopencv-objdetect4.2 libopencv-photo4.2 libopencv-shape4.2 libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2 libopencv-videoio4.2 libopencv-videostab4.2 libopencv-viz4.2
  libopencv4.2-java libopencv4.2-jni libopenexr-dev libpng-dev libpq5 libproj15 libqhull7 libraw1394-dev libsocket++1 libspatialite7 libsuperlu5 libswresample-dev libswscale-dev libsz2
  libtbb-dev libtesseract4 libtiff-dev libtiffxx5 liburiparser1 libvtk6.3 libxerces-c3.2 odbcinst odbcinst1debian2 proj-data
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 225 not upgraded.
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service

You could try this. I’ve not tried it with python 3.8 but might work. Probably need to first sudo pip uninstall jetson-stats

jtop-jetson-stats-without-sudo

Could you also try using pip3 to install?

$ sudo pip3 install smbus2
$ sudo systemctl restart jtop.service
$ jtop

Hi,KevinFFF:

I`m tried to install smbus by pip,still not work:

nvidia@tegra-ubuntu:/etc/udev/rules.d$ sudo pip3 install smbus2
Requirement already satisfied: smbus2 in /usr/local/lib/python3.8/dist-packages (0.5.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
nvidia@tegra-ubuntu:/etc/udev/rules.d$  sudo systemctl restart jtop.service
nvidia@tegra-ubuntu:/etc/udev/rules.d$ 
nvidia@tegra-ubuntu:/etc/udev/rules.d$ 
nvidia@tegra-ubuntu:/etc/udev/rules.d$ systemctl status jtop.service 
● jtop.service - jtop service
     Loaded: loaded (/etc/systemd/system/jtop.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Thu 2025-10-23 11:37:23 UTC; 6s ago
    Process: 4804 ExecStart=/usr/local/bin/jtop --force (code=exited, status=1/FAILURE)
   Main PID: 4804 (code=exited, status=1/FAILURE)
nvidia@tegra-ubuntu:/etc/udev/rules.d$ 
nvidia@tegra-ubuntu:/etc/udev/rules.d$ jtop
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service

Could you run the following commands and share the results?

$ jetson_release
$ sudo jtop --force

Hi,KevinFFF:

Still not work:

nvidia@tegra-ubuntu:~$ jetson_release 
Skip for setup.py
Software part of jetson-stats 4.3.2 - (c) 2024, Raffaello Bonghi
Traceback (most recent call last):
  File "/usr/local/bin/jetson_release", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/jtop/jetson_release.py", line 45, in main
    jetson = get_jetson_variables()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 311, in get_jetson_variables
    part_number, jetson_part_number = get_part_number()
  File "/usr/local/lib/python3.8/dist-packages/jtop/core/jetson_variables.py", line 287, in get_part_number
    bus = SMBus(bus_number, force=True)
NameError: name 'SMBus' is not defined
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ sudo jtop --force
[sudo] password for nvidia: 
Skip for setup.py
The jtop.service is not active. Please run:
sudo systemctl restart jtop.service

Please run the following commands and share the result.

python3 -c "from smbus2 import SMBus; print('smbus2 import SUCCESS')"
python3 -c "from smbus import SMBus; print('smbus import SUCCESS')"

Hi, KevinFFF:

nvidia@tegra-ubuntu:~$ python3 -c "from smbus2 import SMBus; print('smbus2 import SUCCESS')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'SMBus' from 'smbus2' (/usr/local/lib/python3.8/dist-packages/smbus2/__init__.py)
nvidia@tegra-ubuntu:~$ python3 -c "from smbus import SMBus; print('smbus import SUCCESS')"
smbus import SUCCESS

Could you try running the following command to check if they could help for your case?

$ sudo pip3 install --force-reinstall smbus2
$ python3 -c "from smbus2 import SMBus; print('smbus2 import SUCCESS')"
$ sudo systemctl restart jtop.service
$ jtop

Is this still an issue to support? Any result can be shared