From 3cb9377528d372730fa730d1be36c23856c6ccea Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:31:18 +0100 Subject: [PATCH] Fix wheel build for Debian 13 and Python 3.12 compatibility Updates the install script to filter out incompatible tflite_runtime wheels for Python 3.12 on Debian 13, installs tflite-runtime or ai-edge-litert via pip, and adjusts the wheel build process accordingly. This ensures successful installation on newer Debian versions with Python 3.12+. --- install/frigate-install.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 33fd5c175..4bd8c546b 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -169,14 +169,22 @@ mkdir -p /wheels if [[ "$VERSION_ID" == "13" ]]; then # Debian 13 (Python 3.12+): Use pre-built pysqlite3-binary instead of building from source $STD pip3 install pysqlite3-binary + # Filter out incompatible wheels for Python 3.12 + grep -v 'tflite_runtime' /opt/frigate/docker/main/requirements-wheels.txt > /tmp/requirements-wheels-filtered.txt + for i in {1..3}; do + $STD pip3 wheel --wheel-dir=/wheels -r /tmp/requirements-wheels-filtered.txt --default-timeout=300 --retries=3 && break + [[ $i -lt 3 ]] && sleep 10 + done + # Install tflite-runtime from pip for Python 3.12 + $STD pip3 install tflite-runtime || $STD pip3 install ai-edge-litert || true else sed -i 's|^SQLITE3_VERSION=.*|SQLITE3_VERSION="version-3.46.0"|g' /opt/frigate/docker/main/build_pysqlite3.sh $STD bash /opt/frigate/docker/main/build_pysqlite3.sh + for i in {1..3}; do + $STD pip3 wheel --wheel-dir=/wheels -r /opt/frigate/docker/main/requirements-wheels.txt --default-timeout=300 --retries=3 && break + [[ $i -lt 3 ]] && sleep 10 + done fi -for i in {1..3}; do - $STD pip3 wheel --wheel-dir=/wheels -r /opt/frigate/docker/main/requirements-wheels.txt --default-timeout=300 --retries=3 && break - [[ $i -lt 3 ]] && sleep 10 -done msg_ok "Built Python Wheels" NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs