Jetson Nano Dev Kit + Jetson.GPIO

Apologies if this has already been covered!

I am running a relatively basic line detection code and intend on using some computations from the live video input to drive a servo motor for steering my robot via GPIO.
However, I am facing issues with importing the Jetson.GPIO to the code and receiving this error message:

 import Jetson.GPIO as GPIO

ImportError: No module named Jetson.GPIO

I followed Nvidia’s beginners instructions to flashing the most up to date NANO image to my device and I am able to navigate to the jetson-gpio folder via the following directory:

$ cd /opt/nvidia

I have attempted running the setup.py file from within this directory, however this then returns a similar error:

from setuptools import setup

ImportError: No module named setuptools

I’m certain this is an easy fix, can anyone help?

Hi All - I have fixed my problem so for anyone who faces the same problem; stress no more.

The following link helped me to activate and install the Jetson.GPIO libraries for both python and python3. https://csvance.github.io/blog/jetpack-42-jetson-gpio.html - Credit to this Author.

Note: I also had to install pip and pip3 to install the packages properly. Done as follows:

$ sudo apt-get install python3-pip
$ sudo apt-get install python-pip

As assumed, it was an easy fix… Happy developing.