Unable to install jtop getting below error when run the prerequisites command "sudo pip3 install -U jetson-stats"

I face a problem that I can’t install jtop because getting below issue when running below command

sudo pip3 install -U jetson-stats

Collecting jetson-stats
Using cached jetson-stats-4.3.2.tar.gz (118 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
/usr/local/lib/python3.10/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:
  
          License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
  
          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************
  
  !!
    self._finalize_license_expression()
  INFO:root:running egg_info
  INFO:root:creating /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info
  INFO:root:writing /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/PKG-INFO
  INFO:root:writing dependency_links to /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/dependency_links.txt
  INFO:root:writing entry points to /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/entry_points.txt
  INFO:root:writing requirements to /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/requires.txt
  INFO:root:writing top-level names to /tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/top_level.txt
  INFO:root:writing manifest file '/tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/SOURCES.txt'
  INFO:root:reading manifest file '/tmp/pip-pip-egg-info-gckpbgq9/jetson_stats.egg-info/SOURCES.txt'
  INFO:root:reading manifest template 'MANIFEST.in'
  WARNING:root:warning: no previously-included files found matching 'tox.ini'
  WARNING:root:warning: no previously-included files found matching 'Dockerfile'
  WARNING:root:warning: no previously-included files found matching '.dockerignore'
  WARNING:root:no previously-included directories found matching 'tests'
  WARNING:root:no previously-included directories found matching 'docs'
  WARNING:root:no previously-included directories found matching 'examples'
  INFO:root:adding license file 'LICENSE'
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-i4j4bg1m/jetson-stats_992c7e5d932241269d7d9fb9e3d1054e/setup.py", line 207, in <module>
      setup(
    File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 186, in setup
      return run_commands(dist)
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands
      dist.run_commands()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1104, in run_command
      super().run_command(command)
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 312, in run
      self.find_sources()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 320, in find_sources
      mm.run()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 548, in run
      self.prune_file_list()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/command/sdist.py", line 162, in prune_file_list
      super().prune_file_list()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/command/sdist.py", line 386, in prune_file_list
      base_dir = self.distribution.get_fullname()
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 275, in get_fullname
      return _distribution_fullname(self.get_name(), self.get_version())
    File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 293, in _distribution_fullname
      canonicalize_version(version, strip_trailing_zero=False),
  TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
  Skip for setup.py
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Hi muhammed.effat,

Are you using the devkit or custom board for Jetson Nano?
What’s the Jetpack version in use?

Please run the following commands on Jetson Nano to verify jtop

$ sudo apt update
$ sudo apt install python3-pip
$ sudo pip3 install -U jetson-stats
$ jtop

Hi KevienFFF,

still same issue after running suggested commands.
also here is the required information

I’m using devkit for jetson nano super
below the details for the Jetpack versions

apt-cache show nvidia-jetpack

Package: nvidia-jetpack
Source: nvidia-jetpack (6.2)
Version: 6.2+b77
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.2+b77), nvidia-jetpack-dev (= 6.2+b77)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_6.2+b77_arm64.deb
Size: 29298
SHA256: 70553d4b5a802057f9436677ef8ce255db386fd3b5d24ff2c0a8ec0e485c59cd
SHA1: 9deab64d12eef0e788471e05856c84bf2a0cf6e6
MD5sum: 4db65dc36434fe1f84176843384aee23
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Package: nvidia-jetpack
Source: nvidia-jetpack (6.1)
Version: 6.1+b123
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.1+b123), nvidia-jetpack-dev (= 6.1+b123)
Homepage: Jetson - Embedded AI Computing Platform | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_6.1+b123_arm64.deb
Size: 29312
SHA256: b6475a6108aeabc5b16af7c102162b7c46c36361239fef6293535d05ee2c2929
SHA1: f0984a6272c8f3a70ae14cb2ca6716b8c1a09543
MD5sum: a167745e1d88a8d7597454c8003fa9a4
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Do you mean Orin Nano devkit?
We don’t have super mode for Jetson Nano.

Please also share the result of the following command on your board.

$ cat /etc/nv_tegra_release
$ cat /etc/nv_boot_control.conf

How did you flash this devkit? With SDK manager?