[BioPython] Error for running of ReportLab test on Mac OS X
Peter
biopython at maubp.freeserve.co.uk
Fri Sep 28 19:42:31 UTC 2007
Y Tu wrote:
> Thank you, Peter for the prompt answer.
>
> I did install the PIL already and tested with the commands "from PIL
> import Image", then "import _imaging". Both commands succeeded.
> That's why I don't understand why the test won't work. I used the
> command "python test_pdfgen_general.py" under the shell prompt, which
> generated the error. Since I installed PIL and succeeded in importing
> the module of PIL, I thought maybe I can solve the problem by running
> the test under Python.
Looking in more detail at the original stack trace,
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL/ImageFile.py", line 180, in load
> d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL/Image.py", line 375, in _getdecoder
> raise IOError("decoder %s not available" % decoder_name)
> IOError: decoder jpeg not available
Its possible that PIL needs some optional JPEG library, which ReportLab
wants to use. I suggest you search the ReportLab website & user's
mailing list, and if you can't work out what is wrong sign up to their
mailing list and ask them, http://www.reportlab.org/
Very little of Biopython needs ReportLab, you should be able to install
Biopython without it.
Peter
More information about the Biopython
mailing list