# There was a problem using GPIO

**URL:** <https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656>\
**Category:** Jetson Nano\
**Created:** [May 14, 2019, 8:59am UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656 "2019-05-14T08:59:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![2310351762](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2310351762](https://forums.developer.nvidia.com/u/2310351762)\
**Post date:** [May 14, 2019, 8:59am UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/1 "2019-05-14T08:59:19Z")

</div>

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

```auto
File "./simple_input.py", line 22, in <module>
    import RPi.GPIO as GPIO
  File "/opt/nvidia/jetson-gpio/lib/python/RPi/GPIO/ __init__.py", line 1, in <module>
    from Jetson.GPIO import *
  File "/opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/ __init__.py", line 1, in <module>
    from .gpio import *
  File "/opt/nvidia/jetson-gpio/lib/python/Jetson/GPIO/gpio.py", 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/gpio.py", line 88, in get_model
    if int(os.listdir(version_path)[0][-3:]) >= 200:
    ValueError: invalid literal for int() with base 10: 'ion'

```

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [May 15, 2019, 6:10am UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/2 "2019-05-15T06:10:35Z")

</div>

hello 2310351762,

may I know what’s your use-case, what’s the step you reproduce this failure.  
you might also refer to [url][https://pypi.org/project/Jetson.GPIO/[/url]](https://pypi.org/project/Jetson.GPIO/%5B/url%5D) for Jetson.GPIO library.  
thanks

---

<div class="post-metadata">

**Author:** ![2310351762](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2310351762](https://forums.developer.nvidia.com/u/2310351762)\
**Post date:** [May 15, 2019, 3:15pm UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/3 "2019-05-15T15:15:55Z")

</div>

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

```auto
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.  
[https://devtalk.nvidia.com/default/topic/1051608/jetson-nano/gpio-problem-on-nano/post/5337563/#](https://devtalk.nvidia.com/default/topic/1051608/jetson-nano/gpio-problem-on-nano/post/5337563/#)

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [May 16, 2019, 2:17am UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/4 "2019-05-16T02:17:18Z")

</div>

hello 2310351762,

could you please refer to [Topic 1051608](https://devtalk.nvidia.com/default/topic/1051608/jetson-nano/gpio-problem-on-nano/post/5337564/#5337564) and check “simple\_input.py”. thanks

---

<div class="post-metadata">

**Author:** ![juanmedrano.ec09](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@juanmedrano.ec09](https://forums.developer.nvidia.com/u/juanmedrano.ec09)\
**Post date:** [May 21, 2019, 6:33am UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/5 "2019-05-21T06:33:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:44pm UTC](https://forums.developer.nvidia.com/t/there-was-a-problem-using-gpio/74656/6 "2021-10-18T17:44:12Z")

</div>

Closed on October 18, 2021, 5:44pm UTC


