#Jetson Nano - pip install viam-sdk has no version
1 messages · Page 1 of 1 (latest)
Editing so the right answer is here
I used Jetson Hacks with a slight modification to install Python 3.9, set up a virtual environment with alias so that python and python3 both point to python3.9, and I could then pip install viam-sdk
Doing the manual build is possible, but as all the above needs to happen first, there is no point.
Hey Brian, would love a bit more context on this issue so I can help troubleshoot. What version of python/pip do you have installed?
Python is 3.6.9, pip is 21.3.1, OS is Ubuntu 18.04, hardware is Jetson Nano
On the build, I am also getting an error
poetry build
RuntimeError
The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)
re building the python sdk, it looks like the Jetson nano has old versions of python and poetry. Currently trying to upgrade python to 3.9 using https://github.com/JetsonHacksNano/build_python.git
I installed a newer version of poetry using curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.2.0a2 python3 -
Building a newer python version came with it's own issues, dealt with here https://github.com/JetsonHacksNano/build_python/issues/2
Plus I tried newer versions of poetry (1.7.1) and that was not going to work, so went back to 1.2.0a2
Finally, poetry kept insisting that the python and python3 versions were old so it created a new venv, so I fixed my .local/venvs/python3_9 by adding the following 2 lines to the bin/activate file
alias python=python3.9
alias python3=python3.9
I will confirm once the build is done if this worked.
OK, viam-sdk installs using pip fine once the python is 3.9 or higher. Building from scratch is not needed.
Okay glad this was figured out! It is definitely recommended to have the latest stable version of Python if possible
Thanks - the issue is Jetson Nano is dead in the water for new OS development, and even Jetson Hacks who did great work missed out a few steps. Is there somewhere I should help document Viam for old Jetson users?
Of course using Docker can fix this by running a more modern OS on top of the Nano