From 0ee5bc3f0da45ad935e7b046c4ce7653c9ed00a6 Mon Sep 17 00:00:00 2001 From: s-martin Date: Sun, 22 Dec 2024 14:02:30 +0000 Subject: [PATCH] replace RPi.GPIO with rpi-lgpio --- installation/routines/setup_jukebox_core.sh | 2 ++ requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/installation/routines/setup_jukebox_core.sh b/installation/routines/setup_jukebox_core.sh index 2e4fbad39..4d243aa26 100644 --- a/installation/routines/setup_jukebox_core.sh +++ b/installation/routines/setup_jukebox_core.sh @@ -30,6 +30,8 @@ _jukebox_core_install_python_requirements() { source "$VIRTUAL_ENV/bin/activate" pip install --upgrade pip + # Remove RPi.GPIO, if still installed - see https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2313 + pip uninstall rpi-gpio pip install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt" } diff --git a/requirements.txt b/requirements.txt index 8ddfc881a..8fea43269 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,8 @@ requests tornado # RPi's GPIO packages: -RPi.GPIO +# use shim to keep current RPi.GPIO behavior also under Bookworm - see https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2313 +rpi-lgpio gpiozero # PyZMQ is a special case: