[RESOLVED] No module named RPi.GPIO
Options
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
- All Categories
- 63 Announcements & News
- 48 Product News - New Product/Product Change Notice/ End-of-life
- 96 Welcome Developers!
- 45 Unboxing & Project Sharing
- 22 Tech Updates
- 3.4K UP Products
- 15 UP 7000
- 1 UP Squared i12
- 11 UP Xtreme i12
- 13 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 23 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 56 UP Squared Pro
- 136 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 264 Starter Kits & Peripheral