Code

Opened 6 years ago

Closed 6 years ago

#7019 closed (invalid)

ImportError: No module named ImageFile

Reported by: anonymous Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords: ImageFile, PIL
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Depending upon how an environment is configured django/utils/images.py ImageFile (from PIL) not importing on some hosts (OSX 10.4 'ports')

the following fails:

import ImageFile

ImportError: No module named ImageFile

However when images.py is modified with the following, it works fine.

from PIL import ImageFile.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mtredinnick

  • Resolution set to invalid
  • Status changed from new to closed

This isn't a problem with Django. It's a problem with the way PIL is installed and should be reported to the packager for fixing. PIL should be installed so that the PIL directory is part of the Python module search path (normally done via a PIL.pth file) and thus import ImageFile must work; otherwise it's installed incorrectly.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.