Closed
Description
I have set up a pre-release test for pyinstaller freeze of my application.
I just found that the import of scikit-image rc fail because lack of stub files
File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
File "skimage/__init__.py", line 74, in <module>
File "lazy_loader/__init__.py", line 243, in attach_stub
ValueError: Cannot load imports from non-existent stub '/home/runner/work/PartSeg/PartSeg/dist/PartSeg/skimage/__init__.pyci'
[11749] Failed to execute script 'launcher_main' due to unhandled exception!
https://github.com/4DNucleome/PartSeg/actions/runs/4293660567/jobs/7481623224#step:10:183
Of course, I could try to workaround this by add more entries to package_data
but I think that stub files in frozen applications are pointless.
Python allows to check if the application is frozen by getattr(sys, "frozen", False)
so it may be easy to add a proper check and not raise an exception in such a use case.
Metadata
Metadata
Assignees
Labels
No labels