[Zope] Re: PIL and Zope product
Mark Thomas
markt@kooee.com.au
Mon, 14 Apr 2003 23:22:39 +1000
'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 )
>