[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Zope Scripting

webmaster@zope.org webmaster@zope.org
Mon, 06 Jan 2003 17:24:49 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/ScriptingZope.stx#2-40

---------------

    You must have PIL installed for this example to work. See the
    "PythonWorks website":http://www.pythonware.com/products/pil/index.htm
    for more information on PIL.  To use this code create an External
    Method named *makeThumbnail* that uses the *makeThumbnail*
    function in the *Thumbnail* module.

      % Anonymous User - June 17, 2002 10:35 am:
       How do I install PIL on a Windows Platform ?
       I think Zope for win has its own Python ???

      % Anonymous User - July 15, 2002 8:02 pm:
       (a) Download PIL Windows executable installation package for python 2.1:
       http://www.pythonware.com/downloads/py21-pil-1.1.2-20010910.exe. (b) Execute this to install PIL into
       c:\py21. (c) In the Zope bin folder (e.g. c:\Program Files\WebSite\bin) create folder lib\site-packages and
       copy or move contents of c:\py21 there. (d) In the bin folder create file PIL.pth containing two lines:
       lib/site-packages and lib/site-packages/DLLs. (e) Restart Zope. -VS

      % Anonymous User - Sep. 27, 2002 4:29 pm:
       July 15: CAVEAT: there are several Zopes and several PILs.
       Choose one where the python versions match!

      % Anonymous User - Jan. 6, 2003 5:23 pm:
       For install PIL on Debian Sid running Zope 2.5.1/Python2.1.3 (standard deb packages), just do : 
       # apt-get install python2.1-imaging
       # /etc/init.d/zope restart