-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS PyInstaller - No module named 'skimage.filters.rank.core_cy_3d' #5406
Comments
I'm not very experienced with pyinstaller, but as I recall, there's a bit of a trick to using pyinstaller, in that you have to explicitly point it to any binary dynamic linked libraries that need to be bundled, if they are not directly imported by some Python code. That particular file only contains C code so it cannot be imported from Python. So, I think you need to build the binary file in-place ( Some more resources: https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-binary-files I think this is a PyInstaller issue and not a scikit-image bug, so I am going to close the issue, but feel free to continue the discussion if the above links don't quite solve your problem. I also know that Big Sur is funny with .so files now, so there might be additional tricks needed. |
For those who have similar issues and are looking for a fix:
Best regards |
@ArekMC Thanks a lot. Your solution worked for me. |
Description
I cannot bundle scikit with MacOS BigSur. It runs without issues when not bundled.
I figured out, that is is related to the
segmentation
module.All other modules that I am using (e.g. transform, measure, draw), I was able to bundle them with pyinstaller successfully.
I already tried:
But no success. It always tells me, that
ModuleNotFoundError: No module named 'skimage.filters.rank.core_cy_3d'
.The build is running without any error message and completes successfully.
Way to reproduce
Create file called
main.py
.Build code
Execute programm
Version information
Traceback
The text was updated successfully, but these errors were encountered: