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

Adafruit_NeoPixel not defined #1

Open
DomThePro02 opened this issue Sep 21, 2020 · 5 comments
Open

Adafruit_NeoPixel not defined #1

DomThePro02 opened this issue Sep 21, 2020 · 5 comments

Comments

@DomThePro02
Copy link

When i run app.py it is giving me this error:

Traceback (most recent call last):
File "app.py", line 2, in
import stranger
File "/home/pi/Stranger-Things-Integrated/stranger.py", line 23, in
strip = Adafruit_NeoPixel(LED_COUNT, GPIO_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS)
NameError: name 'Adafruit_NeoPixel' is not defined

I'm teaching myself how to use python through RasPi in a 3b+ and ive been solving problems but i cant get past this

@CalebKussmaul
Copy link
Owner

Hey @DomThePro02, it seems that I included instructions in requirements.txt that should have been in the Readme:

First install rpi_ws281x from https://github.com/jgarff/rpi_ws281x

That should fix the issue.

@DomThePro02
Copy link
Author

I had already installed the rpi_ws281x, with the included python wrapper, and I fixed and enabled spi and i2c beforehand. I have all of the adafruit libraries with circuitpython installed as well.

@DomThePro02
Copy link
Author

@CalebKussmaul I originally figured that I didn't have the correct libraries, and im new to Python and Raspberry Pi, seems like an odd issue. Im running python 3 though.

@CalebKussmaul
Copy link
Owner

@DomThePro02 ah that would do it. This project uses Python 2 and isn't compatible with Python 3.

@DomThePro02
Copy link
Author

I'll switch over the defaults and see what happens!

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

2 participants