[Zope] Help with PIL / Photo product
Chris McDonough
chrism@digicool.com
Sun, 09 Jan 2000 18:03:03 -0500
Oops... scratch that...
copy PIL dir to $ZOPEHOME\lib\python\OFS, not /lib/python/Products/OFS
Chris McDonough wrote:
>
> While I've never used the Photo product, I imagine it treats PIL as a
> Python package. I hope it does, anyway.
>
> Try the following: copy the PIL directory that includes __init__.py
> (not the py152 directory, just the PIL directory) into
> $ZOPEHOME/lib/python/Products/OFS. Restart Zope. Forget about PIL.pth.
>
> If this works, know that this isn't the best way to do this, a preferred
> method would be adding a new path pointing to a directory that contains
> PIL (other than OFS) to your PYTHONPATH environment variable. I just
> can't remember how to set environment variables in Win32! Now *THAT's*
> sad.
>
> Dale Lance wrote:
> >
> > Help.
> >
> > I am trying to install the Photo product and am having some problems.
> > I need to install PIL to get it to work but just don't understand
> > <something>
> >
> > Instructions followed:
> >
> > Installing and Packagizing PIL for Zope
> >
> > 1. Download PIL and compile
> > <downloaded pil-win32-991101.zip for Pythonware>
> > Consider leaving out the tk libraries, we won't be using this for Zope.
> > 2. Copy the __init__.py file into your PIL directory
> > <Copied.>
> > 3. Move your PIL directory into your Zope's python's path.
> > <Just PIL directory or whole py152 directory?>
> > <I copied just PIL portion>
> > 4. Move the PIL.pth into your site-packages directory.
> > <don't know what is meant here>
> >
> > System info from Zope control panel:
> > Zope version: Zope 2.0.0 (binary release, python 1.5.2, win32-x86)
> > Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)]
> > System Platform: win32
> >
> > Traceback encountered in broken photo product:
> > Traceback (innermost last):
> > File "C:\Program Files\WebSite\lib\python\OFS\Application.py", line 393,
> > in import_products
> > product=__import__(pname, global_dict, global_dict, silly)
> > File "C:\Program Files\WebSite\lib\python\Products\Photo\__init__.py",
> > line 42, in ?
> > import Photo
> > File "C:\Program Files\WebSite\lib\python\Products\Photo\Photo.py", line
> > 56, in ?
> > import PIL
> > File "C:\Program Files\WebSite\lib\python\PIL\__init__.py", line 4, in ?
> > import Image, ImageFile, ImageDraw, _imaging, GifImagePlugin
> > ImportError: DLL load failed: One of the library files needed to run this
> > application cannot be found.
> >
> > Any help is appreciated.
> >
> > Dale Lance
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
>
> --
> Chris McDonough
> Digital Creations, Inc.
> Zope - http://www.zope.org
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Chris McDonough
Digital Creations, Inc.
Zope - http://www.zope.org