'NeoPixel' object has no attribute 'buf'
See original GitHub issueI just set up a new Raspberry 3.
I did pip3 install adafruit-circuitpython-neopixel
This installed version 4.1.0
No when I start any program this happens:
File "/usr/local/lib/python3.7/dist-packages/adafruit_pypixelbuf.py", line 260, in __setitem__
self.show()
File "/usr/local/lib/python3.7/dist-packages/neopixel.py", line 151, in show
neopixel_write(self.pin, self.buf)
AttributeError: 'NeoPixel' object has no attribute 'buf'
When I do this: pip3 install adafruit-circuitpython-neopixel==4.0.0
everything works again.
I hope this helps. Sincerely HWende
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
AttributeError: module 'neopixel' has no attribute 'Neopixel'
I've been going insane the last two days trying to figure out what is wrong. For some reason, my Raspberry Pi 3 Model...
Read more >Easy NeoPixel Graphics with the CircuitPython Pixel Framebuf ...
The Pixel Framebuf library is designed to make adding text and graphics super simple. It is built on top of the very capable...
Read more >adafruit_pixelbuf — Adafruit CircuitPython NeoPixel Library ...
This class is used when the native adafruit_pixelbuf is not available in CircuitPython. It is based on the work in neopixel.py and adafruit_dotstar.py....
Read more >Adafruit NeoPixel Library: Adafruit_NeoPixel Class Reference
"Empty" NeoPixel constructor when length, pin and/or pixel type are not known at compile-time, and must be initialized later with updateType(), ...
Read more >CircuitPython passing a Tuple as an argument, error expects ...
With something like this, you'll able to know what's wrong and where's the bug. For more, I'd need to get more details about...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
GPIO access is permitted without root access, mmio is not. you have to run any and all neopixel code on a Pi as root
Thank you for your response.