Greetings. I ssh into my BB_B and I have followed this guide and everything works fine. However when I try typing this code to test my installation it doesn’t work:
python -c "import Adafruit_BBIO.GPIO as GPIO; print GPIO"
I get an error:
`
root@beaglebone:~/adafruit-beaglebone-io-python# python blink.py Traceback (most recent call last): File “blink.py”, line 1, in import Adafruit_BBIO.GPIO as GPIO ImportError: No module named GPIO
root@beaglebone:~/adafruit-beaglebone-io-python# python -c “import Adafruit_BBIO.GPIO as GPIO; print GPIO”
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named GPIO
root@beaglebone:~/adafruit-beaglebone-io-python#
`
I tried to move along in the guide and typed this code into a new python file called blink.py:
`
import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup(“P8_10”, GPIO.OUT)
while True:
GPIO.output(“P8_10”, GPIO.HIGH)
time.sleep(0.5)
GPIO.output(“P8_10”, GPIO.LOW)
time.sleep(0.5)
`
When I try to run blink.py I get a similar error to the one above:
root@beaglebone:~/adafruit-beaglebone-io-python# python blink.py Traceback (most recent call last): File “blink.py”, line 1, in import Adafruit_BBIO.GPIO as GPIO ImportError: No module named GPIO
So I know something is up with my GPIO ports but I just do not know what. Please help me.
Thanks for reading