adafruit / Raspberry-Pi-Installer-Scripts

381 stars 160 forks source link

rgb-matrix.sh failing with latest Pi OS #204

Closed caternuson closed 2 years ago

caternuson commented 2 years ago

Re this thread: https://forums.adafruit.com/viewtopic.php?f=47&t=186286

Looks like the fixed commit tag in the script for the hzeller repo is bringing in a version that won't build with latest Python version.

arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I../../include -I/usr/include/python3.9 -c rgbmatrix/core.cpp -o build/temp.linux-armv7l-3.9/rgbmatrix/core.o -O3 -Wall
rgbmatrix/core.cpp: In function ‘int __Pyx_modinit_type_init_code()’:
rgbmatrix/core.cpp:8828:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
8828 | __pyx_type_9rgbmatrix_4core_Canvas.tp_print = 0;

The tp_print member was removed. The current version of the hzeller repo appears to have added preproc guards for this.

makermelissa commented 2 years ago

I believe this was fixed via #205.