Yuji Sato writes:
... So, PIL and PIL.pth are copied in here: /opt/zope/lib/python2.1/site-packages
But it seems that there was no processing to libImagina.a Is it necessary to copy it in somewhere manualy ? No, "*.a" files are static libraries only need for linking.
PIL contains a shared object. If this is linked against a dynamic library (they have names of the form "*.so" and you can use the command "ldd" to check which shared objects (that's what the "so" stands for) are required), then it must be either at a standard place or reachable via "LD_LIBRARY_LATH". A candidate may be "libjpeg.so".
I added "Photo Folder" and Image to my "Zope Site" . But I run "View" DTML Method, I have error message like below:
Error Type: NameError Error Value: global name 'tag' is not defined ... File /opt/zope/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: view) File /opt/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: view) File /opt/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: tag(display=REQUEST.get('display', 'small'), border=1, cookie=1)) (Info: REQUEST) File <string>, line 2, in f NameError: (see above) This does not look like a PIL installation problem.
You should have a DTMLMethod named "view" which calls "tag". "tag" is an "Image" method but apparently, there is not image on the DTML namespace at the moment. Dieter