﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6054	PIL import error	Nebojsa Djordjevic - nesh	nobody	"I tried to use `ImageField` but I got a error that PIL is not installed.

Problem is -- I have PIL installed (easy_instal PIL) and it is working ... and after some hunting I found this

{{{
#!python
try:
  from PIL import Image
except ImportError:
  e.add(opts, '""%s"": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .' % f.name)
}}}

this assume that PIL is in PIL package but, at least in my system, PIL stuff is in site-packages so `import Imaging` works.

Temporary I fixed it like this:
{{{
#!python
try:
  from PIL import Image
except ImportError:
  try:
    import Image
  except ImportError:
     e.add(opts, '""%s"": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .' % f.name)
}}}

so it works now.

Is this my system weirdness or something else?"		closed	Validators	dev		fixed	PIL	nesh@…	Design decision needed	0	0	1	0	0	0
