Skip to content

Fixed ImportError when using Pillow #6

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

Merged
merged 1 commit into from
Aug 11, 2014
Merged

Conversation

svisser
Copy link
Contributor

@svisser svisser commented Apr 7, 2014

PIL's successor, Pillow, only allows importing Image by using:

from PIL import Image

rather than:

import Image

This pull request makes python-tesseract compatible with Pillow. Note that from PIL import Image also works for PIL. It's just that PIL allowed both ways of importing wheres Pillow only allows from PIL import Image.

@GomesNayagam
Copy link

i am desperately waiting for this pull request as PIL is not supported any more. Humble request for collaborators to merge this code please.

madmaze added a commit that referenced this pull request Aug 11, 2014
Fixed ImportError when using Pillow
@madmaze madmaze merged commit 8a858ae into madmaze:master Aug 11, 2014
@svisser
Copy link
Contributor Author

svisser commented Aug 11, 2014

@madmaze thank you!

@madmaze
Copy link
Owner

madmaze commented Aug 12, 2014

@svisser np, sorry it took me so long, turns out I must have accidentally unwatched this repo at some point, therefore never got notification of your pull request

@svisser
Copy link
Contributor Author

svisser commented Aug 12, 2014

@madmaze it's okay; I was able to get it working at the time. Above all the PR is now merged and it's useful for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants