Skip to content
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

ImportError fix... #29

Closed
SilverTab opened this issue Aug 10, 2010 · 4 comments
Closed

ImportError fix... #29

SilverTab opened this issue Aug 10, 2010 · 4 comments

Comments

@SilverTab
Copy link
Contributor

Sometimes (usually if you install PIL via easy_install I think) the Python Imaging Lib gets installed in the root namespace so doing from PIL import Image is not working...

Basically I searched/replaced every instance of from PIL import Image with:

try:
    from PIL import Image
except ImportError:
    import Image

and so far it appears to have successfully fixed the issue... (that issue is also discussed in the django bug tracker here: http://code.djangoproject.com/ticket/6054 ) I think they came to the same conclusion...

@SmileyChris
Copy link
Owner

Yep, that's a fair enough fix. If you've got a local git repo, why not push it up to your own fork and do a pull request for me :)

@SilverTab
Copy link
Contributor Author

Done ;)

@SmileyChris
Copy link
Owner

And done :)

@SmileyChris
Copy link
Owner

I don't see why git's fork queue cherry picks the change rather than just merging, but whatever :P

This issue was closed.
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

No branches or pull requests

2 participants