I have installed the Image module http://www.pythonware.com/products/pil/. I then try and import it in the python interpreter and successfully so:
>>> import Image
>>>
But when I try to import the module in Zope via DTML page:
DTML page looks like:
<dtml-var import_image>
Which calls this script:
def import_image(self):
import Image
im = Image.open("/home/rv/Desktop/blah.jpg")
return im
I then get this error:
"ImportError: No module named Image" How can there be no module when I can import it in the python interpreter?
EDIT
The python script is in Zopes extension folder