[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
Tagged:
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
Tagged
Categories
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 595 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 828 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral