Hi, I ran into trouble when trying use PIL (python imaging lib) in zope product. The problem is that zope's App.ImageFile is used by PIL's internals instead of PILs ImageFile and of course this doesn't work. Any ideas how to fix this problem? Im using Debian Linux 2.2 pyhton packages. thanks, Lauri
Lauri Posti wrote:
Hi,
I ran into trouble when trying use PIL (python imaging lib) in zope product. The problem is that zope's App.ImageFile is used by PIL's internals instead of PILs ImageFile and of course this doesn't work.
Any ideas how to fix this problem?
Put an __init__.py in the PIL file that says: import Image, ImageDraw and have it import whatever you need from pIL. Then you can just do import PIL in Zope. The Poll Product has some instructions on this. -- Itamar S.T. itamars@ibm.net
participants (2)
-
Itamar Shtull-Trauring -
Lauri Posti