Need some help with RPi2 and RPI.GPIO please.
I upgraded my openHAB box from RPi to RPi2 and as part of my setup I use a python script. However when I try and run it now I get a runtime error:
Code: Select all
Traceback (most recent call last):
File "/opt/openhab/scripts/ENERGENIE.py", line 1, in <module>
from energenie import switch_on, switch_off
File "/usr/local/lib/python3.2/dist-packages/energenie/__init__.py", line 2, in <module>
from .energenie import switch_on, switch_off
File "/usr/local/lib/python3.2/dist-packages/energenie/energenie.py", line 1, in <module>
import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
Thanks