There was a problem using GPIO

I didn’t have any problems with it before, but this error occurs when I use GPIO today. Cause it to not even run the sample

File "./", line 22, in <module>
    import RPi.GPIO as GPIO
  File "/opt/nvidia/jetson-gpio/lib/python/RPi/GPIO/", line 1, in <module>
    from Jetson.GPIO import *
  File "/opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/", line 1, in <module>
    from .gpio import *
  File "/opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/", line 96, in <module>
    _board_info, _gpio_chip_base = gpio_pin_data.get_gpio_data(get_model())
  File "/opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/", line 88, in get_model
    if int(os.listdir(version_path)[0][-3:]) >= 200:
    ValueError: invalid literal for int() with base 10: 'ion'

hello 2310351762,

may I know what’s your use-case, what’s the step you reproduce this failure.
you might also refer to for Jetson.GPIO library.

My nano started to be abnormal these days. The first thing is the inability to use gpio, it worked fine before.
Now many commands don’t seem to work, such as

sudo reboot

, but in my memory, I don’t remember what I did to cause it to become like this.
It seems that some people have encountered the same trouble.

hello 2310351762,

could you please refer to Topic 1051608 and check “”. thanks

I had the same issue and solved by following the suggestion made by JerryChang and later needed to reinstall Jetson.GPIO using pip. The issue was solved afterwards.