SnapOtter: recreate the AI venv with --clear (#18119)

The venv lives in the data directory and is recreated on every update; uv now refuses a non-empty path.
This commit is contained in:
CanbiZ (MickLesk)
2026-10-24 17:52:46 +02:00
committed by GitHub
parent 65778f7367
commit c351f17c86

View File

@@ -86,7 +86,7 @@ EOF
msg_info "Updating SnapOtter"
$STD uv python install 3.11
$STD uv venv --seed --python 3.11 /opt/snapotter_data/ai/venv
$STD uv venv --clear --seed --python 3.11 /opt/snapotter_data/ai/venv
if [[ "$(arch_resolve)" == "arm64" ]]; then
$STD uv pip install --python /opt/snapotter_data/ai/venv/bin/python \
numpy==1.26.4 Pillow==12.3.0 opencv-python-headless==4.10.0.84 fonttools \