jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 619 forks source link

Once again: Yet another ImportError: No module named rpi_ws281x #425

Closed masoudl closed 3 years ago

masoudl commented 3 years ago

Hi, I had set up my RP according to the instructions in tutorials-raspberrypi.com, and the set up worked fine at first. But after some changes, and adding modules needed to support touch sensors, I started getting the "No module named rpi_ws281x". Seeing the comments on issue No module named #341, I figured my SD card may become corrupted. So I reformatted and installed the OS, and followed tutorials-raspberrypi.com again. Note: This time I have not added any other modules.

I am still getting this error. Any thoughts?

Gadgetoid commented 3 years ago

You're following a tutorial that's at least 3 years out of date. rpi_ws281x is not provided by Adafruit's NeoPixel library. You should probably dig up a better guide, eg: https://learn.adafruit.com/neopixels-on-raspberry-pi/python-usage

masoudl commented 3 years ago

Thank you,