From ab6e3b06f9c8f64693f2e165925a1ac68459ac58 Mon Sep 17 00:00:00 2001 From: Philipp Sommer Date: Thu, 9 Nov 2023 22:26:35 +0100 Subject: [PATCH] add --break-system-packages option to pip3 install as required for bookworm, see https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2050#issuecomment-1774101077 --- installation/routines/setup_jukebox_core.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/routines/setup_jukebox_core.sh b/installation/routines/setup_jukebox_core.sh index 45eb1610c..0b6bef67f 100644 --- a/installation/routines/setup_jukebox_core.sh +++ b/installation/routines/setup_jukebox_core.sh @@ -99,7 +99,7 @@ _jukebox_core_build_and_install_pyzmq() { fi sudo ZMQ_PREFIX="${ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \ - pip3 install --no-cache-dir --no-binary "pyzmq" --pre pyzmq + pip3 install --no-cache-dir --no-binary "pyzmq" --pre --break-system-packages pyzmq else echo " Skipping. pyzmq already installed" fi @@ -108,7 +108,7 @@ _jukebox_core_build_and_install_pyzmq() { _jukebox_core_install_python_requirements() { echo " Install requirements" cd "${INSTALLATION_PATH}" || exit_on_error - sudo pip3 install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt" + sudo pip3 install --no-cache-dir --break-system-packages -r "${INSTALLATION_PATH}/requirements.txt" } _jukebox_core_install_settings() {