From 65211e7173b4f07220a699d12af4beb1a67e3cb1 Mon Sep 17 00:00:00 2001 From: bilulib Date: Mon, 21 Jul 2025 15:07:38 +0200 Subject: [PATCH] fix PyYAML version --- install/profilarr-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/profilarr-install.sh b/install/profilarr-install.sh index 0e8bd38..def1f02 100644 --- a/install/profilarr-install.sh +++ b/install/profilarr-install.sh @@ -61,12 +61,13 @@ $STD mv "${EXTRACTED_DIR}/frontend" /opt/${APPLICATION}/ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt $STD uv venv /opt/${APPLICATION}/venv -# Install a compatible version of PyYAML first +# Install compatible PyYAML first, then exclude it from requirements $STD uv pip install --python /opt/${APPLICATION}/venv/bin/python "PyYAML>=6.0" -# Create a temporary requirements file excluding the incompatible PyYAML version +# Create modified requirements file temp_req_file=$(mktemp) grep -v "^PyYAML" /opt/${APPLICATION}/backend/requirements.txt >"$temp_req_file" +echo "PyYAML>=6.0" >>"$temp_req_file" $STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r "$temp_req_file" $STD uv pip install --python /opt/${APPLICATION}/venv/bin/python gunicorn