[Zope] Zope/PIL collision - what to do?

Anselm Lingnau lingnau@tm.informatik.uni-frankfurt.de
26 Oct 2000 22:44:56 GMT


I'm trying to use the Python Imaging Library in an external Python
method to modify some images dynamically. However, when I try to load
an image:

  import Image	# from PIL - refers to PIL ImageFile module
  image = Image.open("foo.png")

the method crashes because the Image module sees the Zope ğImageFileĞ
module instead of the one from PIL. The Zope module, of course, does
something completely different from the other one. This is on Debian
GNU/Linux 2.2 with Zope 2.2.2 (taken from the ğunstableĞ distribution
and re-built -- the Zope in Debian 2.2 is older) and the PIL 1.0.1
from the distribution.

How do I get around this?

Anselm
-- 
Anselm Lingnau ......................... lingnau@tm.informatik.uni-frankfurt.de
The only reward of virtue is virtue; the only way to have a friend is to be
one.                                                     -- Ralph Waldo Emerson