[Pythonmac-SIG] Compiling PIL

Dinu Gherman gherman@darwin.in-berlin.de
Wed, 13 Feb 2002 15:17:22 +0100 (CET)


> try this:
>   $ ranlib /usr/local/lib/libjpeg.a

Thanks! Works ok, apart from some buglets in PIL's test code,
some of which seems to be related to Python 2.2, maybe.

Dinu


[localhost:CompileTests/Imaging-1.1.2/MiniTest] dinu% python test.py
*****************************************************************
Failure in example: _info(Image.open("Images/lena.jpg"))
from line #24 of test.testimage
Exception raised:
Traceback (most recent call last):
  File "doctest.py", line 499, in _run_examples_inner
    exec compile(source, "<string>", "single") in globs
  File "<string>", line 1, in ?
  File "test.py", line 12, in _info
    im.load()
  File "/usr/local/lib/python2.2/site-packages/PIL/ImageFile.py", line 140, in 
load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/local/lib/python2.2/site-packages/PIL/Image.py", line 243, in 
_getdecoder
    raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available
*****************************************************************
Failure in example: type(im.im) # internal image attribute
from line #31 of test.testimage
Expected: <type 'None'>
Got: <type 'NoneType'>
*****************************************************************
Failure in example: im.getextrema()
from line #86 of test.testimage
Expected: (64, 128)
Got: (0, 0)
1 items had failures:
   3 of  40 in test.testimage
***Test Failed*** 3 failures.