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

Can't start .py module' object has no attribute 'WS2801Pixels' #1

Open
Banthex opened this issue Oct 17, 2020 · 1 comment
Open

Can't start .py module' object has no attribute 'WS2801Pixels' #1

Banthex opened this issue Oct 17, 2020 · 1 comment

Comments

@Banthex
Copy link

Banthex commented Oct 17, 2020

Hello,

Raspi 3 runs with Octoprint.
Im getting this error also with the exmaple files:

Traceback (most recent call last):
File "beleuchtung.py", line 16, in
pixels = Adafruit_WS2801.WS2801Pixels(PIXEL_COUNT, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE), gpio=GPIO)
AttributeError: 'module' object has no attribute 'WS2801Pixels'

Any solutions?
Greetings Banthex

@bestdani
Copy link

bestdani commented Nov 2, 2021

I had to manually import it from neopixel.py as well in the example file header:

from neopixel import *

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