Skip to content

Commit 66b07c4

Browse files
committed
fix(build): add all wareflow_analysis modules to hiddenimports
The GUI uses CliRunner to invoke CLI commands (like 'wareflow init'), which imports many wareflow_analysis modules dynamically. PyInstaller doesn't detect these dynamic imports, causing ImportError at runtime. Added all wareflow_analysis modules to hiddenimports: - cli, init, data_import (and submodules) - validation, analyze, export (and submodules) - database, common (and submodules) This ensures all modules are bundled in the executable, preventing ImportError when using project creation and other CLI features from the GUI. Fixes: excel-to-sql>=0.3.0 is required error when creating new projects
1 parent ec209e0 commit 66b07c4

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

build/gui.spec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,31 @@ a = Analysis(
7575
# Excel-to-SQL
7676
'excel_to_sql',
7777
'excel_to_sql.auto_pilot', # Used by autopilot.py for PatternDetector
78+
79+
# Wareflow Analysis modules (for CLI integration via CliRunner)
80+
'wareflow_analysis',
81+
'wareflow_analysis.cli',
82+
'wareflow_analysis.init',
83+
'wareflow_analysis.data_import',
84+
'wareflow_analysis.data_import.autopilot',
85+
'wareflow_analysis.data_import.importer',
86+
'wareflow_analysis.data_import.header_detector',
87+
'wareflow_analysis.validation',
88+
'wareflow_analysis.validation.validator',
89+
'wareflow_analysis.validation.reporters',
90+
'wareflow_analysis.analyze',
91+
'wareflow_analysis.analyze.abc',
92+
'wareflow_analysis.analyze.inventory',
93+
'wareflow_analysis.export',
94+
'wareflow_analysis.export.reports',
95+
'wareflow_analysis.export.reports.abc_report',
96+
'wareflow_analysis.export.reports.inventory_report',
97+
'wareflow_analysis.export.excel_builder',
98+
'wareflow_analysis.export.excel_formatters',
99+
'wareflow_analysis.database',
100+
'wareflow_analysis.database.manager',
101+
'wareflow_analysis.common',
102+
'wareflow_analysis.common.output_handler',
78103
],
79104
hookspath=[],
80105
hooksconfig={},

0 commit comments

Comments
 (0)