Skip to content

Commit bdb8838

Browse files
Boothclaude
authored andcommitted
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 <noreply@anthropic.com>
1 parent 9fd0943 commit bdb8838

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/transcription/adapters/whisperx_adapter.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ func (w *WhisperXAdapter) updateWhisperXDependencies(whisperxPath string) error
352352
content := string(data)
353353
content = strings.ReplaceAll(content, "ctranslate2<4.5.0", "ctranslate2==4.6.0")
354354

355+
// torchcodec>=0.6.0 (upstream default) resolves to 0.10.0+ which requires PyTorch 2.9.
356+
// Pin to 0.7.x which is compatible with the PyTorch 2.8.x used here.
357+
content = strings.ReplaceAll(content, "torchcodec>=0.6.0", "torchcodec~=0.7.0")
358+
355359
if !strings.Contains(content, "yt-dlp") {
356360
content = strings.ReplaceAll(content,
357361
`"transformers>=4.48.0",`,

0 commit comments

Comments
 (0)