Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No module named RPi.GPIO #2

Open
jerzyks opened this issue Sep 30, 2018 · 2 comments
Open

Error: No module named RPi.GPIO #2

jerzyks opened this issue Sep 30, 2018 · 2 comments

Comments

@jerzyks
Copy link

jerzyks commented Sep 30, 2018

Hello, on C2 I received an error as below:

root@DietPi:~/RPi.GPIO-Odroid/test# sudo python test.py
Traceback (most recent call last):
File "test.py", line 38, in
import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO

I screwed up something?

@pici
Copy link

pici commented Nov 4, 2018

same for me.
After building and installing according readme i started python 3.7 on my odroid-c2 ( archlinux ).
trying to import RPi.GPIO as GPIO results in:
ModuleNotFoundError: No module named 'RPi._GPIO'
Any hint ?

P.S.:
after gcc these are the installing outputs:
running install
running install_lib
copying build/lib.linux-aarch64-3.7/RPi/_GPIO.cpython-37m-aarch64-linux-gnu.so -> /usr/lib/python3.7/site-packages/RPi
running install_egg_info
Removing /usr/lib/python3.7/site-packages/RPi.GPIO-0.6.3.post1-py3.7.egg-info
Writing /usr/lib/python3.7/site-packages/RPi.GPIO-0.6.3.post1-py3.7.egg-info

@j3ffrw
Copy link

j3ffrw commented Mar 11, 2022

got the same error after python setup.py build install, did a pip list and did not see
RPi.GPIO 0.6.3.post1
what fixed it for me was to logout and login again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants