Skip to content

Commit

Permalink
Add pyinstaller hidden-imports to fix imagecodecs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nchuynh committed Dec 9, 2023
1 parent ba12022 commit 53ce893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package_mac.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller -F --paths $CONDA_PREFIX --add-data "minerva_analysis/client:minerva_analysis/client" --add-data "minerva_analysis/__init__.py:minerva_analysis/" --add-data "minerva_analysis/server:minerva_analysis/server" --add-data "$CONDA_PREFIX/lib/python3.9/site-packages/xmlschema/schemas:xmlschema/schemas" --add-data "$CONDA_PREFIX/lib/python3.9/site-packages/ome_types:ome_types" --hidden-import "scipy.spatial.transform._rotation_groups" --hidden-import "sqlalchemy.sql.default_comparator" --hidden-import "sklearn.neighbors._partition_nodes" --hidden-import "sklearn.neighbors.ball_tree" --hidden-import "sklearn.utils._typedefs" --hidden-import cmath --name $1 run.py
pyinstaller -F --paths $CONDA_PREFIX --add-data "minerva_analysis/client:minerva_analysis/client" --add-data "minerva_analysis/__init__.py:minerva_analysis/" --add-data "minerva_analysis/server:minerva_analysis/server" --add-data "$CONDA_PREFIX/lib/python3.9/site-packages/xmlschema/schemas:xmlschema/schemas" --add-data "$CONDA_PREFIX/lib/python3.9/site-packages/ome_types:ome_types" --hidden-import "scipy.spatial.transform._rotation_groups" --hidden-import "sqlalchemy.sql.default_comparator" --hidden-import "sklearn.neighbors._partition_nodes" --hidden-import "sklearn.neighbors.ball_tree" --hidden-import "sklearn.utils._typedefs" --hidden-import "cmath" --hidden-import "imagecodecs._shared" --hidden-import "imagecodecs._imcd" --name $1 run.py
2 changes: 1 addition & 1 deletion package_win.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller -F --paths $env:CONDA_PREFIX --add-data "minerva_analysis/client;minerva_analysis/client" --add-data "minerva_analysis/server;minerva_analysis/server" --add-data "%CONDA_PREFIX%/Lib/site-packages/xmlschema/schemas;xmlschema/schemas" --add-data "%CONDA_PREFIX%/Lib/site-packages/ome_types;ome_types" --hidden-import "scipy.spatial.transform._rotation_groups" --hidden-import cmath --hidden-import="sqlalchemy.sql.default_comparator" --hidden-import="sklearn.utils._typedefs" --hidden-import="sklearn.neighbors._partition_nodes" --hidden-import="sklearn.neighbors.ball_tree" --icon icon.ico --name minerva_analysis_windows run.py
pyinstaller -F --paths $env:CONDA_PREFIX --add-data "minerva_analysis/client;minerva_analysis/client" --add-data "minerva_analysis/server;minerva_analysis/server" --add-data "%CONDA_PREFIX%/Lib/site-packages/xmlschema/schemas;xmlschema/schemas" --add-data "%CONDA_PREFIX%/Lib/site-packages/ome_types;ome_types" --hidden-import="scipy.spatial.transform._rotation_groups" --hidden-import="cmath" --hidden-import="sqlalchemy.sql.default_comparator" --hidden-import="sklearn.utils._typedefs" --hidden-import="sklearn.neighbors._partition_nodes" --hidden-import="sklearn.neighbors.ball_tree" --hidden-import="imagecodecs._shared" --hidden-import="imagecodecs._imcd" --icon icon.ico --name minerva_analysis_windows run.py

0 comments on commit 53ce893

Please sign in to comment.