From 5757dea3a62268bc6a31a0ba5a514dae9619477a Mon Sep 17 00:00:00 2001 From: Booth Date: Fri, 20 Feb 2026 15:40:02 +0000 Subject: [PATCH] fix: pin torchcodec to 0.7.x for compatibility with PyTorch 2.8.x torchcodec>=0.6.0 (upstream default) resolves to 0.10.0+ which requires PyTorch 2.9. Scriberr ships PyTorch 2.8.x, causing a C++ ABI symbol mismatch at load time. Pin to ~=0.7.0, the last release compatible with PyTorch 2.8. Co-Authored-By: Claude Sonnet 4.6 --- internal/transcription/adapters/whisperx_adapter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/transcription/adapters/whisperx_adapter.go b/internal/transcription/adapters/whisperx_adapter.go index f45373ad..5ff400c6 100644 --- a/internal/transcription/adapters/whisperx_adapter.go +++ b/internal/transcription/adapters/whisperx_adapter.go @@ -352,6 +352,10 @@ func (w *WhisperXAdapter) updateWhisperXDependencies(whisperxPath string) error content := string(data) content = strings.ReplaceAll(content, "ctranslate2<4.5.0", "ctranslate2==4.6.0") + // torchcodec>=0.6.0 (upstream default) resolves to 0.10.0+ which requires PyTorch 2.9. + // Pin to 0.7.x which is compatible with the PyTorch 2.8.x used here. + content = strings.ReplaceAll(content, "torchcodec>=0.6.0", "torchcodec~=0.7.0") + if !strings.Contains(content, "yt-dlp") { content = strings.ReplaceAll(content, `"transformers>=4.48.0",`,