[BioPython] Error for running of ReportLab test on Mac OS X
Y Tu
ytu888 at hotmail.com
Fri Sep 28 19:18:06 UTC 2007
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. However, after importing the test into Python. I do't know how to launch the test under the python prompt (>>>). That's why I asked the second question.
Once again, thank you very much for help.
> Date: Fri, 28 Sep 2007 17:28:28 +0100
> From: biopython at maubp.freeserve.co.uk
> To: ytu888 at hotmail.com; biopython at lists.open-bio.org
> Subject: Re: [BioPython] Error for running of ReportLab test on Mac OS X
>
> Y Tu wrote:
> > I just installed ReportLab on Mac OS X and the test with command
> > "from reportlab.graphics import renderPDF" succeeded. However, when I
> > run the test script (reportlab/test/test_pdfgen_general.py), I got the
> > following error. How to fix the problem.
>
> I would guess you have not installed PIL, the Python Imaging Library,
> which ReportLab uses.
>
> > Another question is how to
> > run the script under the python prompt (>>>) after importing the
> > script by "import test_pdfgen_general.py". Thank you very much.
>
> To run a python script, like "test_pdfgen_general.py", at the command
> line type:
>
> python test_pdfgen_general.py
>
> (assuming python is on the path, and example.py is in the current directory)
>
> In general there are two sorts of python files, scripts which you run
> (like test_pdfgen_general.py) and library modules you import.
>
> 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