-
Notifications
You must be signed in to change notification settings - Fork 158
Description
This is similar to closed issue #255 , I'm experiencing the same error when running a basic example. The panel lights up then immediately goes dark returning the "Segmentation Fault" error in the terminal when running
sudo python3 filename.py
I've formatted the SD Card and used a fresh install of Raspian 32 bit full OS and experienced the same behavior.
I've attempted to update the WS2812 package and am receiving errors when doing so.
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-djflmpk8/ws2812_bb4b8700532f4992a0be6183142b1eea/setup.py'"'"'; file='"'"'/tmp/pip-install-djflmpk8/ws2812_bb4b8700532f4992a0be6183142b1eea/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lvd2lur5/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ws2812 Check the logs for full command output.
Python Version
Python 3.9.2
Type of Raspberry Pi
RPI4
Linux Kernel version
Linux raspberrypi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
Expected behaviour
LED Matrix Lights as coded
Actual behaviour
LED Matrix lights up and immediately goes dark, terminal returns "Segmentation fault" when the code stops executing. I experience the same behavior whether I define a matrix or LED strip. Worth noting I have no issues when leveraging the adafruit neopixel libraries, the panel behaves as expected.
Here is the basic example I am using.
from luma.core.render import canvas
from luma.led_matrix.device import neopixel
device = neopixel(cascaded=512)
with canvas(device) as draw:
draw.point((0,0), fill="white")
Thanks in advance