After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712671 - ocrfeeder is incompatible with Pillow
ocrfeeder is incompatible with Pillow
Status: RESOLVED OBSOLETE
Product: ocrfeeder
Classification: Other
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: ocrfeeder-maint
ocrfeeder-maint
Depends on:
Blocks:
 
 
Reported: 2013-11-19 13:10 UTC by Felix Schwarz
Modified: 2021-05-17 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch - please note that this is completely untested as I could get ocrfeeder to build. (2.69 KB, patch)
2013-11-19 13:10 UTC, Felix Schwarz
none Details | Review

Description Felix Schwarz 2013-11-19 13:10:09 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
Comment 1 Juan A. Suarez Romero 2014-01-22 08:26:38 UTC
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.
Comment 2 Joaquim Rocha 2014-01-25 16:23:17 UTC
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
Comment 3 GNOME Infrastructure Team 2021-05-17 13:33:01 UTC
-- 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.