From 349ec21cb59172ed0f0b8c4ff32775ddf6849488 Mon Sep 17 00:00:00 2001 From: Mikey Sklar Date: Sun, 26 Apr 2026 14:39:12 -0700 Subject: [PATCH] rgb-matrix.sh: add python3-setuptools for Trixie (Python 3.13) compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 3.13 (shipped with Debian Trixie / Pi OS Trixie) removed distutils from the stdlib. The Python bindings build via setup.py, which imports distutils.core — causing both make clean and make build-python to fail with ModuleNotFoundError: No module named 'distutils'. Adding python3-setuptools to the prerequisites apt-get install line provides the distutils compatibility shim and restores the Python bindings build. The C demo and all C examples are unaffected; this only impacts the Python bindings. Tested on Pi Zero 2WH + Adafruit RGB Matrix Bonnet (3211), Convenience mode, Debian Trixie 13.4 / Pi OS (64-bit) April 2026 release. --- rgb-matrix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rgb-matrix.sh b/rgb-matrix.sh index 992b7ee..28eaf31 100755 --- a/rgb-matrix.sh +++ b/rgb-matrix.sh @@ -218,7 +218,7 @@ echo "Updating package index files..." apt-get update echo "Downloading prerequisites..." -apt-get install -y python3-dev python3-pillow cython3 +apt-get install -y python3-dev python3-pillow cython3 python3-setuptools echo "Downloading RGB matrix software..." curl -L $GITUSER/$REPO/archive/$COMMIT.zip -o $REPO-$COMMIT.zip