[Zope] Photo browsing products for Zope

Ed Leafe ed@leafe.com
Wed, 25 Dec 2002 21:59:10 -0500


On Monday, December 23, 2002, at 03:23  PM, george donnelly wrote:

> perhaps this will be of help:
>
> http://www.zope.org/Members/regebro/PIL_zope

	Yes, it helped. I'm getting further now. I got to the point where I 
went to test it in Python. I don't have Tcl/TK installed on my machine, 
so I commented out the sections in Makefile and Setup as instructed. 
But when I run the Python test, I get the following:

Python 2.1.3 (#1, Sep 19 2002, 13:15:46)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
 >>> import PIL.Image
 >>> a=PIL.Image.open('Images/lena.jpg')
 >>> a.load()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "PIL/ImageFile.py", line 126, in load
     self.load_prepare()
   File "PIL/ImageFile.py", line 180, in load_prepare
     self.im = Image.core.new(self.mode, self.size)
   File "PIL/Image.py", line 39, in __getattr__
     raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed

	Seems to me that just commenting out the Tk stuff didn't work - it 
still can't find the right image processing module. Do I have to 
install Tk, or is there some other reason for this error that I can 
correct?

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://foxcentral.net