Commit b3e7c9c
fix: Pin NumPy < 2.0 to fix macOS ARM backend crash
- Pin numpy<2.0 in requirements.txt to avoid NumPy 2.x breaking changes
- Add NumPy hidden imports to backend_server.spec for PyInstaller compatibility
- Fix requirements.txt encoding (UTF-16 → UTF-8)
Fixes: Backend crashes with 'ModuleNotFoundError: No module named numpy._core._exceptions'
on macOS Apple Silicon (M1/M2/M3/M4) due to NumPy 2.x internal module restructuring
that PyInstaller doesn't properly bundle.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2fb67ca commit b3e7c9c
7 files changed
Lines changed: 302 additions & 179 deletions
File tree
- backend
- frontend
- src-tauri
- backend_server_bundle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
Binary file not shown.
0 commit comments