Opened 17 years ago

Closed 17 years ago

#7019 closed (invalid)

ImportError: No module named ImageFile

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

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.

Change History (1)

comment:1 by Malcolm Tredinnick, 17 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top