question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'NeoPixel' object has no attribute 'buf'

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ladyadacommented, Jan 22, 2020

GPIO access is permitted without root access, mmio is not. you have to run any and all neopixel code on a Pi as root

0reactions
zethduboiscommented, Jan 22, 2020

Thank you for your response.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found