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

neopixel.py code not running correctly #328

Closed
Hotke1 opened this issue Oct 17, 2018 · 3 comments
Closed

neopixel.py code not running correctly #328

Hotke1 opened this issue Oct 17, 2018 · 3 comments

Comments

@Hotke1
Copy link

Hotke1 commented Oct 17, 2018

I have a RP1 3b. I am trying to get it to run this software in order to run my neopixel strands. Ever time it tries to call up line 9 in the neopixel.py program it gives me a error that it can not find the rpi_ws281x file. Is there a simple way to fix this issue?

pi@Hotke1:~/rpi_ws281x/python $ sudo python strandtest.py
Traceback (most recent call last):
File "strandtest.py", line 9, in
from neopixel import *
File "/home/pi/rpi_ws281x/python/neopixel.py", line 5, in
import _rpi_ws281x as ws
ImportError: No module named _rpi_ws281x

@bastianum
Copy link

Same here

@Luro02
Copy link

Luro02 commented Nov 2, 2018

sudo pip install rpi_ws281x
or
sudo pip3 install rpi_ws281x
?

@Gadgetoid
Copy link
Collaborator

You should not be using from neopixel import * in any code intending to use the RPi ws281x Python bindings. Rather, use from rpi_ws281x import *.

Seee - rpi-ws281x/rpi-ws281x-python#10

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

4 participants