This module can only be run on a Raspberry Pi


(shaddow501) #1

Hello

trying to work with the guide and installing the Python GPIO I get this error:

root@bpi-iot-ros-ai:/home/pi/RPi.GPIO_BP/test# python led.py Traceback (most recent call last): File “led.py”, line 2, in import RPi.GPIO as GPIO File “/usr/lib/python2.7/dist-packages/RPi/GPIO/init.py”, line 23, in from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi!

I am working with the standard Ubuntu 16.04 from the BPI-P2 Zero page. And the install guide that I was using: - http://wiki.banana-pi.org/Getting_Started_with_P2-Zero

image

there is no bpi_test_g40.py there is g40.py and this gives:

root@bpi-iot-ros-ai:/usr/local/bin# python g40.py Traceback (most recent call last): File “g40.py”, line 2, in import RPi.GPIO as GPIO File “/usr/lib/python2.7/dist-packages/RPi/GPIO/init.py”, line 23, in from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi!

What can be done? Didnt find much info in the internet.