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