You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original date: 2012/07/30 Original reporter: *nordenmark AND gmail DOT COOM *
Hi, I'm trying to bundle an application that includes scikits-image among other packages and I've discovered a problem. skimage.io._plugins/plugin.py is looking for its plugins in the following manner:
So chance to handle this in PyInstaller. skimage.io._plugins/plugin.py has to be adapted to being "frozen" or use another "official" way to find its plugins. There is nothing we can do on PyInstallers side here. Sorry.
Well, you're right. But since people usually need to "have it working, in whatever way possible, now!", then for the sake of googleability I'll leave the following hack that worked for me.
Put into your spec file:
If you use onedir mode, it will grab the skimage plugins directory and put it where skimage expects to find it.
Of course, it's a hack, and rather dirty one to boot.
Original date: 2012/07/30
Original reporter: *nordenmark AND gmail DOT COOM *
Hi, I'm trying to bundle an application that includes
scikits-image among
other packages and I've discovered a problem.skimage.io._plugins/plugin.py
is looking for its plugins in the following manner:However,
__file__
returnswhich actually isn't an existing directory.
So why is it looking in that particular directory and how can I make sure scikits-image can read the plugins from within the bundled application?
Regards,
Nicklas
The text was updated successfully, but these errors were encountered: