[SciPy-user] SciPy autotester fails on pilutil

Christopher Barker Chris.Barker@noaa....
Wed May 6 16:07:24 CDT 2009


josef.pktd@gmail.com wrote:
> When I installed PIL, it added the file PIL.pth to the sitepackages
> directory, which adds the pil directory to the python path, and so
> ``import Image`` works in the standard install (I'm on Windows).
> 
> Can you check if you have a PIL.pth? the content is just the word PIL
> unless it works differently with your operating system.

FWIW, I think "import Image" is deprecated, in favor of "from PIL import 
Image", which removes the need for the pth file. The PIL packge has a 
LOT of stuff in it, you really don't want all of it on your sys.path.


"Namespaces are one honking great idea -- let's do more of those!"

(which isn't an exact fit to the topic at hand, but it's close)


-CHB



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the SciPy-user mailing list