try something like....
import PIL
image = PIL.Image.open('foo.png')
that way you do not have two names "Image" colliding in the names Zope sees
jens
----
Jens Vagelpohl [EMAIL PROTECTED]
Software Engineer www.digicool.com
Digital Creations (888) 344-4332
Got Zope?
----
on 10/26/00 18:44, Anselm Lingnau at [EMAIL PROTECTED]
wrote:
> 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
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )