Skip to content

Commit 0ee5bc3

Browse files
committed
replace RPi.GPIO with rpi-lgpio
1 parent d845bd3 commit 0ee5bc3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

installation/routines/setup_jukebox_core.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ _jukebox_core_install_python_requirements() {
3030
source "$VIRTUAL_ENV/bin/activate"
3131

3232
pip install --upgrade pip
33+
# Remove RPi.GPIO, if still installed - see https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2313
34+
pip uninstall rpi-gpio
3335
pip install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt"
3436
}
3537

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ requests
2121
tornado
2222

2323
# RPi's GPIO packages:
24-
RPi.GPIO
24+
# use shim to keep current RPi.GPIO behavior also under Bookworm - see https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2313
25+
rpi-lgpio
2526
gpiozero
2627

2728
# PyZMQ is a special case:

0 commit comments

Comments
 (0)