GNOME Bugzilla – Bug 712671
ocrfeeder is incompatible with Pillow
Last modified: 2021-05-17 13:33:01 UTC
Created attachment 260236 [details] [review] proposed patch - please note that this is completely untested as I could get ocrfeeder to build. Pillow was a "friendly fork" of PIL and by now probably the de-facto successor of PIL (for example Fedora replaced PIL with Pillow). Currently ocrfeeder is not compatible with Pillow because it uses an ancient way to import the "Image" class. Interestingly a similar fix was made in 0b6d8327 but only in a single file. The issue was also reported in other places: - https://ask.fedoraproject.org/question/35565/help-for-ocrfeeder/ - https://bugs.launchpad.net/ubuntu/+source/ocrfeeder/+bug/1120201
I've run in the same problem and this patch fixed the problem: module Image must be explicitly imported from PIL in most distributions (tested with Ubuntu, Debian and Fedora, in several flavours). So +1 for this patch.
Hi, I already have this fixed in branch introspection. It should be in master but I thought that introspection (where I was working at the time) would take as much as it's taking to be merged in... https://git.gnome.org/browse/ocrfeeder/commit/?h=introspection&id=12f9c999ed49e65f5d9eac6f94b82e516a5f89b6
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/61.