[reportlab-users] Cannot execute runAll.py
Amit
amit.uttam at gmail.com
Wed Jun 22 15:10:01 EDT 2005
Ok I found renderRM, it was under reportlab.com/ftp directory. The
version of renderPM that I have is 0.91 dated sep 26 2003. Is this the
latest version?
And I forgot to mention to you the version of reportlab and python that I have.
reportlab
version: 1.20
python
version: 2.4
Now, when I run runAll.py, I get just one error. Do I need an xml
parser for this?
Thanks once again,
Amit
======================================================================
ERROR: test0 (__main__.BreakingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_platypus_pto.py", line 152, in test0
_breakingTestCase(self)
File "test_platypus_pto.py", line 136, in _breakingTestCase
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 "test_platypus_pto.py", line 49, in ColorParagraph
return Paragraph('<para color=%s>%s</para>' % (c,text),style)
File "/usr/local/reportlab/platypus/paragraph.py", line 378, in __init__
self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
File "/usr/local/reportlab/platypus/paragraph.py", line 403, in _setup
raise "xml parser error (%s) in paragraph beginning\n'%s'"\
xml parser error (garbage in start tag) in paragraph beginning
'<para color=Color(0,0,0)>Inner'
----------------------------------------------------------------------
Ran 1 test in 0.036s
FAILED (errors=1)
On 6/22/05, Amit <amit.uttam at gmail.com> wrote:
> Thanks for the quick reply.
>
> You are correct executing python `pwd`/runAll.py works. Although now I
> have a different problem, reagarding renderPM. I get the error "Failed
> to import renderPM." I have looked in the reportlab website and cannot
> seem to find reference on how to install renderPM.
>
> Thanks in advance,
> Amit
>
> On 6/22/05, Robin Becker <robin at reportlab.com> wrote:
> > Amit wrote:
> > > Hi,
> > >
> >
> > >
> > > Here is the output after executing sudo python runAll.py:
> > >
> > > bash$ sudo python runAll.py
> > > Traceback (most recent call last):
> > > File "runAll.py", line 65, in ?
> > > main()
> > > File "runAll.py", line 55, in main
> > > testSuite = makeSuite(folder,nonImportable=NI,pattern=pattern+(not
> > > haveSRC and 'c' or ''))
> > > File "runAll.py", line 17, in makeSuite
> > > for filename in GlobDirectoryWalker(folder, pattern):
> > > File "/sw/lib/python2.4/reportlab/test/utils.py", line 98, in __init__
> > > raise ValueError('"%s" is not a directory' % directory)
> > > ValueError: "" is not a directory
> > > bash$
> > >
> > > Any help would be greatly appreciated.
> > Amit, I think this is a bug in the startup code of runAll.py; we try to locate
> > the folder containing the testfiles. It seems to be coming out as the empty string.
> >
> > A way round this is to ensure that runAll.py has a folder. Try executing
> >
> > python `pwd`/runAll.py
> >
> > If that works it will confirm the problem. Can you let me know what version of
> > python & reportlab you're using. I have tried to fix up the runAll script
> > before, but it seems I have failed to locate the test folder properly.
> > --
> > Robin Becker
> >
>
More information about the reportlab-users
mailing list