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.