Skip to content

Commit

Permalink
Added scipy hook, DLL import issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dbouget committed Aug 21, 2023
1 parent 68dc08a commit 9c9952e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
pip install matplotlib==3.3.4
pip install -e git+https://github.com/dbouget/raidionics_rads_lib.git@update#egg=raidionicsrads
pip install -r assets/requirements.txt
pip install scipy==1.9.3
- name: Build software
run: |
Expand Down
6 changes: 6 additions & 0 deletions assets/hooks/hook-scipy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from PyInstaller.utils.hooks import collect_submodules
from PyInstaller.utils.hooks import collect_data_files

hiddenimports = collect_submodules("scipy")

datas = collect_data_files("scipy")
2 changes: 1 addition & 1 deletion assets/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ print("PLATFORM:", sys.platform)

# fix hidden imports
hidden_imports = loadtxt(cwd + "/assets/requirements.txt", comments="#", delimiter=",", unpack=False, dtype=str)
hidden_imports = [x.split("=")[0] for x in hidden_imports] + ["ants", "sklearn", "scikit-learn",
hidden_imports = [x.split("=")[0] for x in hidden_imports] + ["ants", "sklearn", "scikit-learn", "scipy",
"statsmodels", "gevent", "distutils", "PySide6", "gdown", "pydicom", "rt_utils", "raidionicsrads", "raidionicsseg"]
hidden_imports = [x.lower() for x in hidden_imports]

Expand Down

0 comments on commit 9c9952e

Please sign in to comment.