Just to report that RPi.GPIO 0.5.11 works with the higher pin numbers. I take it that it will make its way into the repository at some stage.
Thanks for the great work on this!
It's been there for a couple of days now...meltwater wrote:Just to report that RPi.GPIO 0.5.11 works with the higher pin numbers. I take it that it will make its way into the repository at some stage.
That's good news...chances are it went live, just after I last checked!DirkS wrote:It's been there for a couple of days now...meltwater wrote:Just to report that RPi.GPIO 0.5.11 works with the higher pin numbers. I take it that it will make its way into the repository at some stage.
Which feature?Houtkamp wrote:Has anyone figured out a way to use GPIO yet, or is it still messed up?
It would be great to be able to use this feature...
Bill
....see Dougie's post above.netelbcn wrote:Hi,
I'm trying to import the RPi.GPIO library, and I have the same error message however I hsve the RPi.GPIO-0.5.11.egg version.
Could you help to me in order to solve this issue?
Thanks!
And I have now the 0.5.11 versión of the RPi.GPIO library, but I still have the same error (after reboot)DougieLawson wrote:sudo apt-get update && sudo apt-get upgrade
Please can you post the error message.netelbcn wrote:texy, I did these steps:And I have now the 0.5.11 versión of the RPi.GPIO library, but I still have the same error (after reboot)DougieLawson wrote:sudo apt-get update && sudo apt-get upgrade
Thanks!
I believe you may still have the old versions lurking about in your usr/local/lib/python* find and delete them!netelbcn wrote:texy, I did these steps:And I have now the 0.5.11 versión of the RPi.GPIO library, but I still have the same error (after reboot)DougieLawson wrote:sudo apt-get update && sudo apt-get upgrade
Thanks!
I followed these steps, and now it works fine!DougieLawson wrote:Uninstall the version that dpkg/apt-get knows about.
sudo apt-get purge python{,3}-rpi.gpio
Scan your filesystem for all copies of RPi.GPIO
find /usr -name "*RPi*"
remove everything that you find
sudo apt-get install python{,3}-rpi.gpio
to put back a good version.
Code: Select all
import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
Which os are you using, and how old is it?Liam Senior wrote:Hi all, i have a Pi2 and i am still getting theerror despite following the fix mentioned above. Help?Code: Select all
import RPi.GPIO as GPIO RuntimeError: This module can only be run on a Raspberry Pi!
-many thanks
Code: Select all
#!/usr/bin/python
import RPi.GPIO
print RPi.GPIO.VERSION
Tried it several times with no luck, program still not runningDougieLawson 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 with both enabled and disabled, no luckjoan wrote:Is device tree enabled?
grep device /boot/config.txt
Are you looking at the right config.txt? If using NOOBS boot the system while holding the [SHIFT] key to get the NOOBS recovery system running, it has a config editor.Liam Senior wrote:Tried with both enabled and disabled, no luckjoan wrote:Is device tree enabled?
grep device /boot/config.txt
-many thanks
It does not resolve your issue but you need to enable device tree for recent versions of RPi.GPIO. It is broken on non device tree systems.Liam Senior wrote: ...
Tried with both enabled and disabled, no luck
...