Hi
i have a raspberry pi 4 and i downloaded the image with ROS ( 2020-11-07). When I ran a python script that uses GPIO pins I got the following message:
Traceback (most recent call last):
File "/home/ubuntu/catkin_ws/src/auto_docking/scripts/autoDocking.py", line 14, in <module>
import RPi.GPIO as GPIO
File "/usr/lib/python2.7/dist-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
Does anyone have any suggestions?