Skip to content

Commit df8946a

Browse files
committed
fix(whisperx): use unsafe-best-match index strategy to fix uv resolution failure
uv's default first-match strategy finds torch on PyPI before checking the extra index, causing it to pick torch==2.8.0+cu128 instead of the CPU variant. This makes whisperx's transitive torch dependency unresolvable. Using unsafe-best-match lets uv consider all indexes. Signed-off-by: eureka928 <meobius123@gmail.com>
1 parent 28a5aa5 commit df8946a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/python/common/libbackend.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ function installRequirements() {
436436
if [ "x${USE_PIP}" == "xtrue" ]; then
437437
pip install ${EXTRA_PIP_INSTALL_FLAGS:-} --requirement "${reqFile}"
438438
else
439-
uv pip install ${EXTRA_PIP_INSTALL_FLAGS:-} --requirement "${reqFile}"
439+
uv pip install --index-strategy unsafe-best-match ${EXTRA_PIP_INSTALL_FLAGS:-} --requirement "${reqFile}"
440440
fi
441441
echo "finished requirements install for ${reqFile}"
442442
fi

0 commit comments

Comments
 (0)