From 796a8b292cecb762f12f883b5d23f2cd419e87c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B6gl-Brunner=20Michel?= Date: Fri, 27 Nov 2026 14:55:34 +0100 Subject: [PATCH] Pin install Python version in ct update scripts --- ct/anki-sync-server.sh | 1 + ct/apache-airflow.sh | 1 + ct/audiomuse-ai.sh | 1 + ct/bambuddy.sh | 3 ++- ct/borg-ui.sh | 1 + ct/fireshare.sh | 4 ++-- ct/homelable.sh | 5 +++-- ct/kapowarr.sh | 2 +- ct/kima-hub.sh | 1 + ct/librenms.sh | 3 ++- ct/matter-server.sh | 1 + ct/mylar3.sh | 1 + ct/netalertx.sh | 1 + ct/openviking.sh | 1 + ct/pyload.sh | 1 + ct/scraparr.sh | 4 ++-- ct/subwave.sh | 1 + ct/tianji.sh | 2 +- ct/transmute.sh | 3 ++- ct/trip.sh | 1 + ct/vllm.sh | 2 ++ 21 files changed, 29 insertions(+), 11 deletions(-) diff --git a/ct/anki-sync-server.sh b/ct/anki-sync-server.sh index 2e535a556..d0c645596 100644 --- a/ct/anki-sync-server.sh +++ b/ct/anki-sync-server.sh @@ -38,6 +38,7 @@ function update_script() { create_backup /opt/anki-sync-server/.env /opt/anki-sync-server/data + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Anki Sync Server" $STD uv pip install --python /opt/anki-sync-server/venv/bin/python "anki==$(get_latest_github_release "ankitects/anki")" cat <~/.anki-sync-server diff --git a/ct/apache-airflow.sh b/ct/apache-airflow.sh index af525e85b..b63ba52ce 100644 --- a/ct/apache-airflow.sh +++ b/ct/apache-airflow.sh @@ -45,6 +45,7 @@ function update_script() { create_backup /opt/airflow/.env + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Apache Airflow to ${LATEST}" $STD uv pip install --python /opt/airflow/.venv/bin/python \ "apache-airflow[postgres,fab]==${LATEST}" \ diff --git a/ct/audiomuse-ai.sh b/ct/audiomuse-ai.sh index 5348205c7..e9bf02ae2 100644 --- a/ct/audiomuse-ai.sh +++ b/ct/audiomuse-ai.sh @@ -56,6 +56,7 @@ function update_script() { ;; esac + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Python Environment (${AUDIOMUSE_BACKEND})" cd /opt/audiomuse-ai $STD uv venv --clear --seed --python "$PY_VERSION" /opt/audiomuse-ai/.venv diff --git a/ct/bambuddy.sh b/ct/bambuddy.sh index f79b5db95..7ccfb9617 100644 --- a/ct/bambuddy.sh +++ b/ct/bambuddy.sh @@ -51,9 +51,10 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy" + PYTHON_VERSION="3.13" setup_uv msg_info "Updating Python Dependencies" cd /opt/bambuddy - $STD uv venv --clear + $STD uv venv --python 3.13 --clear $STD uv pip install -r requirements.txt msg_ok "Updated Python Dependencies" diff --git a/ct/borg-ui.sh b/ct/borg-ui.sh index 43e4891e6..3ba903f21 100644 --- a/ct/borg-ui.sh +++ b/ct/borg-ui.sh @@ -69,6 +69,7 @@ function update_script() { exit 1 fi + PYTHON_VERSION="3.12" setup_uv if [[ "$(cat /opt/borg1-venv/.pinned_version 2>/dev/null)" != "$BORG1_VERSION" ]]; then msg_info "Installing Borg ${BORG1_VERSION} (Patience)" $STD uv venv --clear --python "$BORG_PYTHON" /opt/borg1-venv diff --git a/ct/fireshare.sh b/ct/fireshare.sh index e4ef14df3..db6cb7b3f 100644 --- a/ct/fireshare.sh +++ b/ct/fireshare.sh @@ -40,7 +40,7 @@ function update_script() { create_backup /opt/fireshare/fireshare.env CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball" - UV_PROJECT_DIR="/opt/fireshare" setup_uv + PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/fireshare" setup_uv restore_backup rm -f /usr/local/bin/fireshare @@ -56,7 +56,7 @@ function update_script() { msg_info "Configuring Fireshare" cd /opt/fireshare - $STD uv venv --clear + $STD uv venv --python 3.14 --clear $STD .venv/bin/python -m ensurepip --upgrade $STD .venv/bin/python -m pip install --upgrade --break-system-packages pip $STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server diff --git a/ct/homelable.sh b/ct/homelable.sh index 1b1321d69..c24466217 100644 --- a/ct/homelable.sh +++ b/ct/homelable.sh @@ -44,9 +44,10 @@ function update_script() { restore_backup + PYTHON_VERSION="3.13" setup_uv msg_info "Updating Python Dependencies" cd /opt/homelable/backend - $STD uv venv --clear /opt/homelable/backend/.venv + $STD uv venv --python 3.13 --clear /opt/homelable/backend/.venv $STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt msg_ok "Updated Python Dependencies" @@ -60,7 +61,7 @@ function update_script() { msg_info "Restoring MCP Server" MCP_OWNER=$(stat -c '%U' /opt/homelable/mcp/.env) cd /opt/homelable/mcp - $STD uv venv --clear /opt/homelable/mcp/.venv + $STD uv venv --python 3.13 --clear /opt/homelable/mcp/.venv $STD uv pip install --python /opt/homelable/mcp/.venv/bin/python -r requirements.txt chown -R "$MCP_OWNER":"$MCP_OWNER" /opt/homelable/mcp systemctl restart homelable-mcp diff --git a/ct/kapowarr.sh b/ct/kapowarr.sh index 08de47515..e60c914a0 100644 --- a/ct/kapowarr.sh +++ b/ct/kapowarr.sh @@ -31,7 +31,7 @@ function update_script() { exit fi - setup_uv + PYTHON_VERSION="3.12" setup_uv if check_for_gh_release "kapowarr" "Casvt/Kapowarr"; then msg_info "Stopping Service" diff --git a/ct/kima-hub.sh b/ct/kima-hub.sh index 58c99c2ad..a65f039dd 100644 --- a/ct/kima-hub.sh +++ b/ct/kima-hub.sh @@ -40,6 +40,7 @@ function update_script() { create_backup /opt/kima-hub/backend/.env /opt/kima-hub/frontend/.env + PYTHON_VERSION="3.13" setup_uv CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball" restore_backup diff --git a/ct/librenms.sh b/ct/librenms.sh index aab285b0e..33291814f 100644 --- a/ct/librenms.sh +++ b/ct/librenms.sh @@ -41,12 +41,13 @@ function update_script() { CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="rrd" fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball" restore_backup + PYTHON_VERSION="3.13" setup_uv msg_info "Updating LibreNMS" mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage} chown -R librenms:librenms /opt/librenms chmod 771 /opt/librenms chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd - $STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt" + $STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --python 3.13 --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan optimize:clear" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated" diff --git a/ct/matter-server.sh b/ct/matter-server.sh index b11562cbd..a732472f5 100644 --- a/ct/matter-server.sh +++ b/ct/matter-server.sh @@ -36,6 +36,7 @@ function update_script() { systemctl stop matter-server msg_ok "Stopped Service" + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Matter Server" MATTER_VERSION=$(get_latest_github_release "matter-js/python-matter-server") $STD uv pip install --python /opt/matter-server/.venv/bin/python --upgrade "python-matter-server[server]==${MATTER_VERSION}" diff --git a/ct/mylar3.sh b/ct/mylar3.sh index c38c37cf5..71959c53a 100644 --- a/ct/mylar3.sh +++ b/ct/mylar3.sh @@ -29,6 +29,7 @@ function update_script() { fi if check_for_gh_release "mylar3" "MylarComics/mylar3"; then + PYTHON_VERSION="3.11" setup_uv fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball" systemctl restart mylar3 msg_ok "Updated successfully!" diff --git a/ct/netalertx.sh b/ct/netalertx.sh index f410a4732..16b359115 100644 --- a/ct/netalertx.sh +++ b/ct/netalertx.sh @@ -38,6 +38,7 @@ function update_script() { CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball" + PYTHON_VERSION="3.13" setup_uv msg_info "Updating NetAlertX" cd /opt/netalertx $STD uv pip install --python .venv/bin/python -r requirements.txt diff --git a/ct/openviking.sh b/ct/openviking.sh index d2af58580..6b9088f6f 100644 --- a/ct/openviking.sh +++ b/ct/openviking.sh @@ -41,6 +41,7 @@ function update_script() { systemctl stop openviking msg_ok "Stopped Service" + PYTHON_VERSION="3.12" setup_uv msg_info "Updating OpenViking" $STD uv pip install --python /opt/openviking/bin/python --upgrade openviking msg_ok "Updated OpenViking" diff --git a/ct/pyload.sh b/ct/pyload.sh index 9d3d4c17f..53c331110 100644 --- a/ct/pyload.sh +++ b/ct/pyload.sh @@ -35,6 +35,7 @@ function update_script() { systemctl stop pyload msg_ok "Stopped Service" + PYTHON_VERSION="3.13" setup_uv msg_info "Updating ${APP}" $STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]" msg_ok "Updated ${APP}" diff --git a/ct/scraparr.sh b/ct/scraparr.sh index 56252c6bb..03f0a6447 100644 --- a/ct/scraparr.sh +++ b/ct/scraparr.sh @@ -35,12 +35,12 @@ function update_script() { systemctl stop scraparr msg_ok "Services Stopped" - PYTHON_VERSION="3.12" setup_uv + PYTHON_VERSION="3.13" setup_uv fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr" msg_info "Updating Scraparr" cd /opt/scraparr - $STD uv venv --clear /opt/scraparr/.venv + $STD uv venv --python 3.13 --clear /opt/scraparr/.venv $STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade $STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip $STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt diff --git a/ct/subwave.sh b/ct/subwave.sh index 3c800ff7d..4669b83f2 100644 --- a/ct/subwave.sh +++ b/ct/subwave.sh @@ -43,6 +43,7 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "subwave" "perminder-klair/subwave" "tarball" fetch_and_deploy_gh_release "liquidsoap" "savonet/liquidsoap" "binary" "$(grep -oP 'savonet/liquidsoap:\Kv[0-9.]+' /opt/subwave/docker/Dockerfile.broadcast)" "" "liquidsoap_*-debian-trixie-ocaml4.14.2-*_$(arch_resolve).deb" + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Analyzer and Kokoro" $STD uv pip install --python /opt/analyzer/venv/bin/python librosa==0.11.0 soundfile==0.14.0 pyloudnorm==0.2.0 $STD uv pip install --python /opt/kokoro/venv/bin/python kokoro-onnx==0.5.0 soundfile==0.12.1 misaki==0.9.4 pyopenjtalk-plus==0.4.1.post10 cn2an==0.5.24 jieba==0.42.1 ordered-set==4.1.0 pypinyin==0.55.0 pypinyin-dict==0.9.0 diff --git a/ct/tianji.sh b/ct/tianji.sh index 3079e722c..14cb2b7ee 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - setup_uv + PYTHON_VERSION="3.13" setup_uv if check_for_gh_release "tianji" "msgbyte/tianji"; then NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs diff --git a/ct/transmute.sh b/ct/transmute.sh index 3846dced6..86ae96acb 100644 --- a/ct/transmute.sh +++ b/ct/transmute.sh @@ -49,9 +49,10 @@ function update_script() { restore_backup + PYTHON_VERSION="3.13" setup_uv msg_info "Updating Python Dependencies" cd /opt/transmute - $STD uv venv --clear /opt/transmute/.venv + $STD uv venv --python 3.13 --clear /opt/transmute/.venv $STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt msg_ok "Updated Python Dependencies" diff --git a/ct/trip.sh b/ct/trip.sh index ea2258b01..038a418cb 100644 --- a/ct/trip.sh +++ b/ct/trip.sh @@ -47,6 +47,7 @@ function update_script() { cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/ msg_ok "Updated Frontend" + PYTHON_VERSION="3.12" setup_uv msg_info "Updating Backend" cd /opt/trip/backend $STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt diff --git a/ct/vllm.sh b/ct/vllm.sh index 2cfccd039..0f0cf58a8 100644 --- a/ct/vllm.sh +++ b/ct/vllm.sh @@ -41,6 +41,8 @@ function update_script() { VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)" VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")" + + PYTHON_VERSION="3.12" setup_uv msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)" case "$VLLM_BACKEND" in rocm)