[RESOLVED] No module named RPi.GPIO

erenaud
erenaud New Member Posts: 9
edited June 2018 in UP Board Linux

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

Privacy Policy