[RESOLVED] No module named RPi.GPIO

erenauderenaud Posts: 9New Member
edited June 8 in 40-PIN GP-bus

Hi

I am trying to use RPi.GPIO on some python code. But I always get the same error when trying to import it :

sudo python testRpiGpio.py 
Traceback (most recent call last):
  File "testRpiGpio.py", line 7, in <module>
    import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO

I installed it with the command, but I also tried virtualenv and sudo:

pip install RPi.GPIO --user

I am running Ubuntu on a Up Squared, so it wasn't installed by default.
Package seems to be installed:

pip freeze | grep -i GPIO
RPi.GPIO==0.6.3

Honestly, it begins to drive me crazy, I don't see how I can get stuck for so long on something that simple...

Thanks

Comments

  • erenauderenaud Posts: 9New Member
    edited June 6

    If anyone have the same problem, you actually have to manually install this modified version :
    https://github.com/emutex/RPi.GPIO

  • ccaldeccalde Posts: 185New Member, Emutex mod

    Hi @erenaud ,

    Is that discussion closed? If so, please could you redefine the title as [RESOLVED] No module named RPi.GPIO

  • erenauderenaud Posts: 9New Member

    Hi @ccalde , I would gladly do that. If only it was possible to edit my post ;)

Sign In or Register to comment.