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

Pillow 4.1.0 got an error: "can not migrate ImageField because Pillow is not installed" > Pillow 4.0.0 works properly, Python 3.6.0 #2482

Closed
MuslimBeibytuly opened this issue Apr 11, 2017 · 6 comments

Comments

@MuslimBeibytuly
Copy link

MuslimBeibytuly commented Apr 11, 2017

[[deleted boilerplate]]

@hugovk
Copy link
Member

hugovk commented Apr 11, 2017

Please will you edit the body of your issue and fill in the sections with more info?

@astarrh
Copy link

astarrh commented Apr 12, 2017

I am experiencing the same issue on Windows 10 with Python version 3.6

I am using PIllow to support a Django (1.11) ImageField. When I install the latest Pillow release (Pillow==4.1.0), it doesn't seem to take.

Instead, when I check for errors it reports the following:

gallery.Photo.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".

I can clearly see the directory in the file browser and it is listed when I do a pip freeze. However, Pillow doesn't appear when I do a scan of the modules from help() in the shell, and I am unable to import PIL.

Rolling back to Version 4.0 finally resolved it.

@hugovk
Copy link
Member

hugovk commented Apr 12, 2017

This sounds like #2479 (comment).

Are you using Python 3.6.0?

Does Pillow 4.1.0 work if you update to Python 3.6.1?

@wiredfool
Copy link
Member

closing, duplicate and no activity

@astarrh
Copy link

astarrh commented Apr 25, 2017

Finally got back to this. Python upgrade resolves the issue. Thank you.

@dperetti
Copy link

This misleading error message can occur when Pillow was successfully built and installed, then a required library removed.
Just happened to me while optimizing a docker image! (libjpeg was missing)

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

5 participants