[reportlab-users] Error generate by runAll.py in Mac OSX
Y Tu
ytu888 at hotmail.com
Mon Oct 15 11:56:34 EDT 2007
I installed the Reportlab_2_1 and tested the script test_pdfgen_general.py successfully. However, when I run the runAll.py script, the following error showed up. What's wrong and how to fix it? Thank you very much.
LeesComputer:/applications/MacPython
2.5/reportlab/test Lee$ python runAll.py
.Failed
to import renderPM.
.............................................................................................................../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/platypus/paragraph.py:548:
DeprecationWarning: raising a string exception is deprecated
%
(_parser.errors[0],text[:min(30,len(text))])
E............../Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/lib/colors.py:540:
DeprecationWarning: raising a string exception is deprecated
raise 'Invalid color value', str(arg)
E................................
======================================================================
ERROR:
This makes one long multi-page paragraph.
----------------------------------------------------------------------
Traceback
(most recent call last):
File "/Applications/MacPython
2.5/reportlab/test/test_platypus_paragraphs.py", line 139, in test1
story.append(ImageAndFlowables(Image(gif),[heading,Paragraph(text,bt)]))
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/platypus/paragraph.py",
line 523, in __init__
self._setup(text, style, bulletText, frags,
cleanBlockQuotedText)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/platypus/paragraph.py",
line 548, in _setup
% (_parser.errors[0],text[:min(30,len(text))])
xml
parser error (garbage in start tag) in paragraph beginning
'If
you imagine that the box of'
======================================================================
ERROR:
test0 (test_platypus_pleaseturnover.TestCases)
----------------------------------------------------------------------
Traceback
(most recent call last):
File "/Applications/MacPython
2.5/reportlab/test/test_platypus_pleaseturnover.py", line 174, in test0
_ptoTestCase(self)
File "/Applications/MacPython
2.5/reportlab/test/test_platypus_pleaseturnover.py", line 152, in
_ptoTestCase
ptoblob('2 PTO (inner
split)',[ColorParagraph('pink',text0,bt),PTOContainer([ColorParagraph(black,'Inner
Starts',H1),ColorParagraph('yellow',text2,bt),ColorParagraph('black','Inner
Ends',H1)],t1,h1),ColorParagraph('magenta',text1,bt)],t0,h0)
File "/Applications/MacPython
2.5/reportlab/test/test_platypus_pleaseturnover.py", line 116, in
ColorParagraph
return Paragraph('<para color=%s>%s</para>'
% (c,text),style)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/platypus/paragraph.py",
line 523, in __init__
self._setup(text, style, bulletText, frags,
cleanBlockQuotedText)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/reportlab/platypus/paragraph.py",
line 548, in _setup
%
(_parser.errors[0],text[:min(30,len(text))])
xml
parser error (garbage in start tag) in paragraph beginning
'<para
color=Color(0,0,0)>Inner'
----------------------------------------------------------------------
Ran
160 tests in 53.463s
FAILED
(errors=2)
_________________________________________________________________
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20071015/ffd0c89c/attachment-0001.html>
More information about the reportlab-users
mailing list