[Zope] How to install PIL with Zope.
Yuji Sato
yujis@forest-e.co.jp
Wed, 07 Aug 2002 15:00:14 +0900
May I ask you some more question ?
I'd like to install PIL, because I want to use "Photo and Photo Folder
Product".
The configuration of my server is like this:
Zope Location /opt/zope
Python Location /opt/zope/bin/python
"libjpeg.a" and "libz.a" are situated under /usr/lib.
I did ./configure and make under the /libImagina.
Then I run setup.py at the ../
/opt/zope/bin/python setup.py build
/opt/zope/bin/python setup.py install
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 ?
If it's necessary, in where ?
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
Traceback (innermost last):
File /opt/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module
File /opt/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
File /opt/zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
(Object: img)
File /opt/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
File /opt/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
(Object: view)
File /opt/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
(Object: view)
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)
regards Yujis.