try something like....

import PIL

image ='foo.png')

that way you do not have two names "Image" colliding in the names Zope sees



Jens Vagelpohl        [EMAIL PROTECTED]
Software Engineer
Digital Creations     (888) 344-4332

Got Zope?


on 10/26/00 18:44, Anselm Lingnau at [EMAIL PROTECTED]

> 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 ="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

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to