Opened 14 years ago

Closed 14 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


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

the following fails:

import ImageFile

ImportError: No module named ImageFile

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

from PIL import ImageFile.

Change History (1)

comment:1 Changed 14 years ago by Malcolm Tredinnick

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