[Zope] Re: PIL and Zope product
Jeroen Vloothuis
jeroen@noterik.nl
Wed, 16 Apr 2003 09:15:20 +0200
thanks, it now works :-)
On Monday 14 April 2003 15:22, Mark Thomas wrote:
> 'ImageFile' is used in both Zope and PIL, so you need to explicitly
> import from the PIL package:
> IE. Instead of: import Image
> try: from PIL import Image
>
> Jeroen Vloothuis wrote:
> > I am trying to use PIL(Python Imaging Library) to draw some images. When
> > I run the code from within Zope I get this error:
> >
> > Error Type: AttributeError
> > Error Value: 'ImageFile' module has no attribute '_save'
> >
> > When run from normal Python it creates the image just fine.
> > Cheers,
> > Jeroen
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://mail.zope.org/mailman/listinfo/zope-announce
> > http://mail.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )