Resolved: “This module can only be run on a Raspberry Pi!”

I received a new Raspberry PI 2 and fired it up today.  Upon running my first GPIO enabled program I got the following error:

“This module can only be run on a Raspberry Pi!”

To resolve, I just needed to update RPI.GPIO:
sudo apt-get update && sudo apt-get install python-rpi.gpio python3-rpi.gpio

More info here:

http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=98466&p=684000#p683480

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s