Go to advanced search

by Liam Senior
Tue Jun 09, 2015 6:06 am
Forum: Python
Topic: import RPi.GPIO as GPIO RuntimeError
Replies: 47
Views: 34932

Re: import RPi.GPIO as GPIO RuntimeError

joan wrote:Is device tree enabled?

grep device /boot/config.txt
Tried with both enabled and disabled, no luck

-many thanks
by Liam Senior
Mon Jun 08, 2015 2:37 am
Forum: Python
Topic: import RPi.GPIO as GPIO RuntimeError
Replies: 47
Views: 34932

Re: import RPi.GPIO as GPIO RuntimeError

DougieLawson wrote:You've got an old version of RPi.GPIO hiding in the bowels of your filesystem.

sudo apt-get purge python{,3}-rpi.gpio
find . -name "*RPi.GPIO*" | xargs sudo rm
sudo apt-get install python{,3}-rpi.gpio
Tried it several times with no luck, program still not running

-many thanks
by Liam Senior
Sat Jun 06, 2015 6:11 am
Forum: Python
Topic: import RPi.GPIO as GPIO RuntimeError
Replies: 47
Views: 34932

Re: import RPi.GPIO as GPIO RuntimeError

OS is raspbian (05-05), RPi.GPIO is 0.5.11, I have python.dev installed if that makes a difference

-many thanks
by Liam Senior
Fri Jun 05, 2015 6:42 am
Forum: Python
Topic: import RPi.GPIO as GPIO RuntimeError
Replies: 47
Views: 34932

Re: import RPi.GPIO as GPIO RuntimeError

Hi all, i have a Pi2 and i am still getting the

Code: Select all

    import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
error despite following the fix mentioned above. Help?

-many thanks

Go to advanced search