Repository navigation
Commit 003250e
FlowCyt Dev
fix(spec): collect ALL backend.app modules, not just endpoints
Root cause of exe startup crash (from launcher.log):
ModuleNotFoundError: No module named 'backend.app.schemas.recommendations'
backend/app/api/v1/router.py loads endpoints via importlib.import_module(),
and several endpoints in turn import_module() their schemas (e.g.
recommendations.py -> backend.app.schemas.recommendations). PyInstaller's
static analysis can't follow these string-based imports, so the previous
spec only collected endpoints/ and admin/endpoints/ — missing schemas/,
services/, core/.
Switch to rglob('*.py') under backend/app/ to collect every module in the
package, eliminating the per-directory enumeration that kept missing
dynamically-imported subpackages.1 parent e297170 commit 003250e
1 file changed
Lines changed: 13 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments