16 Feb
2006
16 Feb
'06
10:06 a.m.
Josef Meile schrieb:
Hi Allen
I started importing External Script using PIL but all I get is -- 'module' object has no attribute 'Image'
Yes, I got that too long time ago when working with Zope 2.7.2 and python 2.3.3. At that time I did the following in the python shell:
import PIL PIL.Image
But I got as well: AttributeError: 'module' object has no attribute 'Image'
Then I tried this:
from PIL import Image as PilImage
and it worked. Perhaps you are having the same problem.
import PIL.Image works too. Image is the module in the package PIL. Regards Tino