Quantcast
Viewing all articles
Browse latest Browse all 3780

Troubleshooting • Re: ModuleNotFoundError: No module named 'rpi'

Python is case sensitive so the import line should be:

Code:

import RPi.GPIO as GPIO
That is assuming it's installed and that it runs on your version of the OS.

IIRC under Bookworm it's still missing I2C and SPI support but TBH it's been awhile since I used it having moved to GPIO Zero (see here for details).

Statistics: Posted by MiscBits — Mon Apr 15, 2024 7:16 pm



Viewing all articles
Browse latest Browse all 3780

Trending Articles