-
Notifications
You must be signed in to change notification settings - Fork 121
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
Missing plugin with imread in SKIMAGE #510
Comments
hi, have you solved it? |
You need to add the required plugins using The stackoverflow solution is wrong since you want to add python modules (I assume) and no data-files. |
We would appreciate if you'd submit a hook for this. See https://pyinstaller.readthedocs.org/en/latest/hooks.html for more information about how to implement hooks. |
I solve this by using the solution from pyinstaller/pyinstaller#583 first put these at the top of the spec file: _from distutils.sysconfig import get_python_lib then i added 'skimage_plugins' the so it looks like below: coll = COLLECT(exe, although i am facing other issues at the moment, but at least i got away with the error. don't follow the stackoverflow solution. it was incorrect. not sure why it was given a tick. |
Somebody to create a real hook for this? You just need to use |
Still not solved. But I don't need it any more. Don't know how to create
the hook file.
…On Sat, 1 Sep 2018, 21:04 Hartmut Goebel, ***@***.***> wrote:
Reopened pyinstaller/pyinstaller-hooks-contrib#510 <#510>.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#510>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX-a1kwuUYqBLLpONVY6lobV0pyH1z1oks5uWug_gaJpZM4SJT94>
.
|
You can create a hook file hook-skimage.io.py with the following content: from PyInstaller.utils.hooks import collect_data_files, collect_submodules
datas = collect_data_files("skimage.io._plugins")`
hiddenimports = collect_submodules('skimage.io._plugins') From: https://stackoverflow.com/a/35043355 Method 1: (global)You have to do this method only one time. Your PyInstaller will use the file every time you have a project with skimage.io. Method 2: (only for current project)This method is NOT global. Your PyInstaller need to get this file every time you have a project with skimage.io.
./hooks must the path to the folder there your hook-skimage.io.py is placed. script.py is your script with the application you want to pack with PyInstaller. You have to call this attribute every time you want to pack this script. Both methods work for one-file and one-directory mode. I uploaded the file here: |
Should this issue be closed now that pyinstaller/pyinstaller#3934 is merged? |
So it can |
Building script with SKIMAGE as below:
The above script works while in Spyder but generating the below error after building with Pyinstaller
I have tried solution from this link, but not working.
https://stackoverflow.com/questions/40676027/pyinstaller-valueerror-too-many-values-to-unpack?noredirect=1&lq=1
It indicates that the library cannot be found.
The text was updated successfully, but these errors were encountered: