[Zope] Zope & PIL: ImageFile name conflict

shawn grant shawn@dolphinsearch.com
Thu, 15 Nov 2001 10:22:13 -0800


Using PIL 1.1.2 from within Zope 2.4.2 (python 2.1):

the following call works from the command line but fails for me within Zope,
font = 
ImageFont.load('/usr/lib/python2.1/site-packages/PIL/Images/base_pil/300/Verdana_10_300.pil')

The open method in PIL's Image.py tries to open an image file (the 
corresponding Verdana_10_300.pbm file).  It attempts to create an 
ImageFile object, which it should be importing from PIL/ImageFile.py but 
instead is getting App/ImageFile.py from Zope.

How can I resolve this naming conflict?