[Django] #28022: pillow not being recognised

6 views
Skip to first unread message

Django

unread,
Apr 5, 2017, 3:45:56 AM4/5/17
to django-...@googlegroups.com
#28022: pillow not being recognised
------------------------------------------------+------------------------
Reporter: fboerman | Owner: nobody
Type: Bug | Status: new
Component: Core (System checks) | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Hi,

I have updated my django to version 1.11 with pip and now django does not
recognise that I have pillow installed. I get the {{{Cannot user
ImageField because Pillow is not installed}}}. However pillow is installed
as {{{pip install -U pillow}}} tells me and I can also do {{{import PIL}}}
with no problems.
This problem also did not occur before I upgraded from 1.10 to 1.11. Are
there people who can reproduce this and maybe know how to fix it?

--
Ticket URL: <https://code.djangoproject.com/ticket/28022>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 5, 2017, 7:59:54 AM4/5/17
to django-...@googlegroups.com
#28022: pillow not being recognised
-------------------------------------+-------------------------------------
Reporter: fboerman | Owner: nobody
Type: Bug | Status: closed
Component: Core (System | Version: 1.11
checks) |
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => needsinfo


Comment:

AFAIR, nothing changed from Django 1.8 in this regard. In
`django/db/models/fields/files.py` Django is doing `from PIL import Image`
to detect pillow installs. I would suggest searching for help in Django
support channels to find out if Django is at fault or not.

--
Ticket URL: <https://code.djangoproject.com/ticket/28022#comment:1>

Django

unread,
Apr 5, 2017, 8:47:32 AM4/5/17
to django-...@googlegroups.com
#28022: pillow not being recognised
-------------------------------------+-------------------------------------
Reporter: fboerman | Owner: nobody

Type: Bug | Status: closed
Component: Core (System | Version: 1.11
checks) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

Confirming that resolution, I see no problem when testing
[https://github.com/django/djangoproject.com/ djangoproject.com] (which
uses `ImageField`) with Django 1.11 and Pillow 4.1.0.

--
Ticket URL: <https://code.djangoproject.com/ticket/28022#comment:2>

Reply all
Reply to author
Forward
0 new messages