From 62675c77aeeda530f4b7b15b6c2ec949101574bd Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Mar 2026 09:13:07 -0700 Subject: [PATCH] Exclude torchcodec from PyInstaller to fix diarization torchcodec is partially bundled but non-functional (missing FFmpeg DLLs), causing pyannote.audio to try AudioDecoder which fails with NameError. Excluding it forces pyannote to fall back to torchaudio for audio loading. Co-Authored-By: Claude Opus 4.6 --- python/voice_to_notes.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/voice_to_notes.spec b/python/voice_to_notes.spec index 5caefec..ed82974 100644 --- a/python/voice_to_notes.spec +++ b/python/voice_to_notes.spec @@ -39,6 +39,10 @@ a = Analysis( # circular import crashes under PyInstaller. These modules are only # needed for model format conversion, never for inference. "ctranslate2.converters", + # torchcodec is partially bundled by PyInstaller but non-functional + # (missing FFmpeg shared libs). Excluding it forces pyannote.audio + # to fall back to torchaudio for audio decoding. + "torchcodec", ], win_no_prefer_redirects=False, win_private_assemblies=False,