[Zope] Re: PIL error: decoder jpeg not available

Dave_Lehman/Loewen.LOEWEN@loewen.com Dave_Lehman/Loewen.LOEWEN@loewen.com
Sun, 22 Dec 2002 11:55:25 -0600


--- In zope@yahoogroups.com, "Lennart Regebro" <lennart@r...> wrote:

> Have you read http://www.zope.org/Members/regebro/PIL_zope/ ?

Yes, I have read this. I don't think I really know what i'm looking for in
step 2, which is why I believe I can't really accomplish step 3.

If I query RPM, it tells me I already have "libjpeg.so.6" installed. I this
the same as the jpeglib described in step 2? If not, where would I find
"jpeglib"? I believe one of the readme's I read said that the jpeg libs
that come standard with RedHat would be fine (I have RH 7.3).

So I believe if I understand where me jpeg libs are in step 2, I can point
at them when I make my imaging lib in step 3, and then everything should be
fine, right?

Can anyone offer a suggestion?

--dave



> From: <dave@l...>
> > I'm desperately trying to get PIL going under Zope, so I can run the
> > Photo and Photo Folder products.
>
> Have you read http://www.zope.org/Members/regebro/PIL_zope/ ?
>
> >
> > Everything seems to be working fine as long as I stick to .gif
> > images-- I can create a photo folder, add photo docs, pregenerate
> > thumbnails, etc.
> >
> > However, it breaks when I try to use a .jpg image. When I try to
> > create a photo doc with a .jpg, I get the following error:
> >
> >      *  Module PIL.Image, line 255, in _getdecoder
> >      IOError: decoder jpeg not available
> >
> > OK, so i've searched all the lists I can find, and it seems as if i
> > don't have JPEG support compiled into PIL.
> >
> > If I go to /var/zope/lib/python2.1/site-packages/PIL and run "ldd
> > _imaging.so", I get:
> >
> >      libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
> >      /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> > I believe I should have a line in there like "libjpeg.so.6 =>
> > /usr/lib/libjpeg.so.6". But I don't. So I believe this means that I
> > need to recompile the PIL libraries? I went back to my PIL /libImaging
> > folder and tried manually editing the ImConfig.h file. I uncommented
> > the line
> >
> >      /* Define if you have the IJG jpeg library (-ljpeg).  */
> >      #undef HAVE_LIBJPEG */
> >
> > then re-run make, but the new "_imaging.so" still doesn't seem to be
> > linked to libjpeg.so.6.
> >
> > I think i'm close, but I can't quite get there. How do I recompile PIL
> > with JPG support? Sorry for being an idiot here, but can someone help
> > drag me the last 10 feet to victory?
> >
> > --dave
>
> _______________________________________________
> Zope maillist  -  Zope@z...
> 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 )