Commit f2ee3f3
fix(data_import): use lazy imports to prevent excel-to-sql load errors
Replace module-level imports with lazy imports using __getattr__.
This prevents excel-to-sql from being imported at application startup,
which causes ImportError in the compiled Windows executable when the
auto_pilot module is bundled but not properly initialized.
The lazy import ensures excel-to-sql is only loaded when actually
needed (e.g., during data import operations), not during module
initialization or GUI startup.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent ffc833c commit f2ee3f3
1 file changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
7 | | - | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments