[BioPython] Error for running of ReportLab test on Mac OS X

Y Tu ytu888 at hotmail.com
Mon Oct 1 11:39:50 UTC 2007


Thanks Peter, 

However, I still haven't install mxText module in my Mac yet. Also could you tell me how to run the test file of ReportLab, when I launch Python and then import the test file into the python. Thanks.




> Date: Fri, 28 Sep 2007 20:42:31 +0100
> From: biopython at maubp.freeserve.co.uk
> To: ytu888 at hotmail.com
> CC: biopython at lists.open-bio.org
> Subject: Re: [BioPython] Error for running of ReportLab test on Mac OS X
> 
> 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
> 
> 

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us



More information about the Biopython mailing list