From fd89831d8356fc4f1254d89ef7ae56d5f8202938 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Sun, 25 Jan 2026 21:14:03 -0800 Subject: [PATCH] Fix PyInstaller missing jaraco dependencies --- backend/build_binary.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/build_binary.py b/backend/build_binary.py index 4793ca5f..7b895aec 100644 --- a/backend/build_binary.py +++ b/backend/build_binary.py @@ -32,7 +32,7 @@ def build_server(): '--exclude-module', 'IPython', '--exclude-module', 'notebook', '--exclude-module', 'pytest', - '--exclude-module', 'setuptools', + # Don't exclude setuptools - pkg_resources needs it '--exclude-module', 'torch.distributions', '--exclude-module', 'torch.testing', '--exclude-module', 'tensorboard', @@ -79,6 +79,16 @@ def build_server(): '--copy-metadata', 'qwen-tts', '--collect-submodules', 'qwen_tts', '--collect-data', 'qwen_tts', + # Fix for pkg_resources and jaraco namespace packages + '--hidden-import', 'pkg_resources.extern', + '--hidden-import', 'jaraco', + '--hidden-import', 'jaraco.text', + '--hidden-import', 'jaraco.functools', + '--hidden-import', 'jaraco.context', + '--collect-submodules', 'jaraco', + '--copy-metadata', 'jaraco.text', + '--copy-metadata', 'jaraco.functools', + '--copy-metadata', 'jaraco.context', '--noconfirm', '--clean', ])