Skip to content

Commit 4e4a13e

Browse files
Mayank PandeyCopilot
authored andcommitted
fix: Pin scipy<1.14 to fix reverse_geocoder import error
- Pin scipy<1.14 in requirements.txt (scipy 1.14+ has PyInstaller bundling issues) - Add SciPy hidden imports to backend_server.spec for compatibility Fixes: 'ModuleNotFoundError: No module named scipy._cyutility' which was causing backend to crash on macOS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9b49096 commit 4e4a13e

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
5757
- name: Copy backend executable
5858
run: |
59-
copy backend\dist\backend_server.exe frontend\src-tauri\backend_server-x86_64-pc-windows-msvc.exe
59+
cd frontend
60+
node ensure-backend.js
6061
6162
- name: Test frontend build
6263
run: |

backend/backend_server.spec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ a = Analysis(
3939
'numpy._core._dtype_ctypes',
4040
'numpy._core._internal',
4141
'numpy._core.multiarray',
42+
# SciPy hidden imports for PyInstaller compatibility
43+
'scipy._lib._ccallback_c',
44+
'scipy._cyutility',
45+
'scipy.special._ufuncs_cxx',
46+
'scipy.linalg.cython_blas',
47+
'scipy.linalg.cython_lapack',
48+
'scipy.integrate',
49+
'scipy.integrate.odepack',
50+
'scipy.integrate._odepack',
51+
'scipy.integrate.quadpack',
52+
'scipy.integrate._quadpack',
4253
],
4354
hookspath=[],
4455
hooksconfig={},

backend/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
fastapi
22
uvicorn
33
numpy<2.0
4+
scipy<1.14
45
pydantic
56
Pillow
67
face_recognition

0 commit comments

Comments
 (0)