Bundle soundfile with native libs in PyInstaller, link LICENSE in README
All checks were successful
Build Sidecars / Bump sidecar version and tag (push) Successful in 7s
Release / Bump version and tag (push) Successful in 5s
Build Sidecars / Build Sidecar (macOS) (push) Successful in 3m48s
Release / Build App (macOS) (push) Successful in 1m19s
Build Sidecars / Build Sidecar (Linux) (push) Successful in 12m2s
Release / Build App (Linux) (push) Successful in 4m40s
Build Sidecars / Build Sidecar (Windows) (push) Successful in 28m52s
Release / Build App (Windows) (push) Successful in 3m30s
All checks were successful
Build Sidecars / Bump sidecar version and tag (push) Successful in 7s
Release / Bump version and tag (push) Successful in 5s
Build Sidecars / Build Sidecar (macOS) (push) Successful in 3m48s
Release / Build App (macOS) (push) Successful in 1m19s
Build Sidecars / Build Sidecar (Linux) (push) Successful in 12m2s
Release / Build App (Linux) (push) Successful in 4m40s
Build Sidecars / Build Sidecar (Windows) (push) Successful in 28m52s
Release / Build App (Windows) (push) Successful in 3m30s
soundfile needs collect_all() to include libsndfile native library — hiddenimports alone wasn't enough, causing 'No module named soundfile' in the frozen sidecar. This is needed for the pyannote Audio patch that bypasses torchaudio/torchcodec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -126,4 +126,4 @@ docs/ # Documentation
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT
|
[MIT](LICENSE)
|
||||||
|
|||||||
@@ -12,12 +12,13 @@ faster_whisper_datas, faster_whisper_binaries, faster_whisper_hiddenimports = co
|
|||||||
"faster_whisper"
|
"faster_whisper"
|
||||||
)
|
)
|
||||||
pyannote_datas, pyannote_binaries, pyannote_hiddenimports = collect_all("pyannote")
|
pyannote_datas, pyannote_binaries, pyannote_hiddenimports = collect_all("pyannote")
|
||||||
|
soundfile_datas, soundfile_binaries, soundfile_hiddenimports = collect_all("soundfile")
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
["voice_to_notes/main.py"],
|
["voice_to_notes/main.py"],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
binaries=ctranslate2_binaries + faster_whisper_binaries + pyannote_binaries,
|
binaries=ctranslate2_binaries + faster_whisper_binaries + pyannote_binaries + soundfile_binaries,
|
||||||
datas=ctranslate2_datas + faster_whisper_datas + pyannote_datas,
|
datas=ctranslate2_datas + faster_whisper_datas + pyannote_datas + soundfile_datas,
|
||||||
hiddenimports=[
|
hiddenimports=[
|
||||||
"torch",
|
"torch",
|
||||||
"torchaudio",
|
"torchaudio",
|
||||||
@@ -30,7 +31,8 @@ a = Analysis(
|
|||||||
]
|
]
|
||||||
+ ctranslate2_hiddenimports
|
+ ctranslate2_hiddenimports
|
||||||
+ faster_whisper_hiddenimports
|
+ faster_whisper_hiddenimports
|
||||||
+ pyannote_hiddenimports,
|
+ pyannote_hiddenimports
|
||||||
|
+ soundfile_hiddenimports,
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
|
|||||||
Reference in New Issue
Block a user