GPIO problem on Nano

Could you let me know how I could enable the GPIO port? For example, I connect a device with 3.3VDC on 17 pin, GND on 20 pin, and data on pin 19 (corresponding to GPIO 16), I put the input_pin=16, but nothing happens. I always get 0 output. While I switch to input_pin=19, it does not get better.

Code are located at /opt/nvidia/jetson-gpio/samples/

I find out that the code located in line 88 of
/usr/local/lib/python3.6/dist-packages/Jetson/GPIO/ is wrong and would throw out error when running in /opt/nvidia/jetson-gpio/samples/ code. I changed it to:

if int(os.listdir(version_path)[1][-3:]) >= 200:


if int(os.listdir(version_path)[0][-3:]) >= 200:

Could you confirm this is a bug or something funny happens in the Nano device?

hello kylezheng04,

I’ve check Nano’s default root filesystem, which looks correct.

if int(os.listdir(version_path)[0][-3:]) >= 200:

am not sure what’s wrong according to your comment #2, could you please download the package again to have double confirmation.

i have the same problem, have you solved it?

hello 2310351762,

did you had same issue as comment #2?
may I know the linkage of the package you had working with and found the version path failure.