[RESOLVED] No module named RPi.GPIO
erenaud
New Member Posts: 9 ✭
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
-
If anyone have the same problem, you actually have to manually install this modified version :
https://github.com/emutex/RPi.GPIO -
Hi @erenaud ,
Is that discussion closed? If so, please could you redefine the title as [RESOLVED] No module named RPi.GPIO
-
Hi @ccalde , I would gladly do that. If only it was possible to edit my post