NVIDIA-AI-IOT/jetbot

Jetson nano(4GB), python3 setup.py install. then error

laomaup opened this issue · 1 comments

Best match: Adafruit-PureIO 1.1.9
Processing Adafruit_PureIO-1.1.9.tar.gz
Writing /tmp/easy_install-sttdutfk/Adafruit_PureIO-1.1.9/setup.cfg
Running Adafruit_PureIO-1.1.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-sttdutfk/Adafruit_PureIO-1.1.9/egg-dist-tmp-yb40oept
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-sttdutfk/Adafruit_PureIO-1.1.9/setup.py", line 51, in
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in init
_Distribution.init(self, attrs)
File "/usr/lib/python3.6/distutils/dist.py", line 281, in init
self.finalize_options()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 528, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/tmp/easy_install-sttdutfk/Adafruit_PureIO-1.1.9/.eggs/setuptools_scm-7.0.5-py3.6.egg/setuptools_scm/init.py", line 5
from future import annotations
^
SyntaxError: future feature annotations is not defined

During handling of the above exception, another exception occurred:
..........
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-sttdutfk/Adafruit_PureIO-1.1.9/setup.py", line 51, in
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in init
_Distribution.init(self, attrs)
File "/usr/lib/python3.6/distutils/dist.py", line 281, in init
self.finalize_options()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 528, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
SyntaxError: future feature annotations is not defined

I was get in the same trouble.
After install setuptools-scm collect version.

Please submit following command on your jetbot. I think this problems will be clear

sudo pip3 install setuptools-scm==6.0.1