mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-09-07 00:25:40 +00:00
fix: include torchcodec metadata in PyInstaller Windows build
transformers 5.x calls importlib.metadata.version("torchcodec") at import
time; without the metadata the frozen Windows app crashes on startup.
This commit is contained in:
parent
3fa37a9d52
commit
72fee65028
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ datas += copy_metadata("treetable")
|
|||
datas += copy_metadata("soundfile")
|
||||
datas += copy_metadata("dora-search")
|
||||
datas += copy_metadata("lhotse")
|
||||
# transformers 5.x audio_utils calls importlib.metadata.version("torchcodec")
|
||||
# at import time when AutoProcessor loads; without this the frozen Windows
|
||||
# build crashes on startup with PackageNotFoundError.
|
||||
datas += copy_metadata("torchcodec")
|
||||
|
||||
# Allow transformers package to load __init__.py file dynamically:
|
||||
# https://github.com/chidiwilliams/buzz/issues/272
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue