[reportlab-users] Newbie in Reportlab
Riaan Lombaard
riaanl at specsoft-it.com
Wed Sep 7 05:55:07 EDT 2005
Hi.
I've followed the instructions in the user manual to install Reportlab
and started running the test programs.
Now I am getting a list of errors when running the runAll.py script.
Any help will be appreciated. I am running Python 2.4.1
Error List
.option -n not recognized
use -h or --help for help
Eoption -n not recognized
use -h or --help for help
Eoption -n not recognized
use -h or --help for help
Eoption -n not recognized
use -h or --help for help
E................................................E......................
........................E....E..........................
======================================================================
ERROR: Test if functions have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_docstrings.py", line 152, in
test0
self._writeLogFile(FunctionType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 110, in
_writeLogFile
objects = getModuleObjects(RL_HOME, 'reportlab', objType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 54, in
getModuleObjects
module = __import__(mName)
File "C:\Python24\reportlab\tools\py2pdf\idle_print.py", line 52, in ?
py2pdf.main(args+[f])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 1477, in
main
options.updateWithContentsOfArgv(cmdline[1:])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 447, in
updateWithContentsOfArgv
sys.exit(2)
SystemExit: 2
======================================================================
ERROR: Test if classes have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_docstrings.py", line 156, in
test1
self._writeLogFile(ClassType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 110, in
_writeLogFile
objects = getModuleObjects(RL_HOME, 'reportlab', objType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 54, in
getModuleObjects
module = __import__(mName)
File "C:\Python24\reportlab\tools\py2pdf\idle_print.py", line 52, in ?
py2pdf.main(args+[f])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 1477, in
main
options.updateWithContentsOfArgv(cmdline[1:])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 447, in
updateWithContentsOfArgv
sys.exit(2)
SystemExit: 2
======================================================================
ERROR: Test if methods have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_docstrings.py", line 160, in
test2
self._writeLogFile(MethodType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 110, in
_writeLogFile
objects = getModuleObjects(RL_HOME, 'reportlab', objType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 54, in
getModuleObjects
module = __import__(mName)
File "C:\Python24\reportlab\tools\py2pdf\idle_print.py", line 52, in ?
py2pdf.main(args+[f])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 1477, in
main
options.updateWithContentsOfArgv(cmdline[1:])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 447, in
updateWithContentsOfArgv
sys.exit(2)
SystemExit: 2
======================================================================
ERROR: Test if modules have a doc string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_docstrings.py", line 164, in
test3
self._writeLogFile(ModuleType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 110, in
_writeLogFile
objects = getModuleObjects(RL_HOME, 'reportlab', objType)
File "C:\Python24\reportlab\test\test_docstrings.py", line 54, in
getModuleObjects
module = __import__(mName)
File "C:\Python24\reportlab\tools\py2pdf\idle_print.py", line 52, in ?
py2pdf.main(args+[f])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 1477, in
main
options.updateWithContentsOfArgv(cmdline[1:])
File "C:\Python24\reportlab\tools\py2pdf\py2pdf.py", line 447, in
updateWithContentsOfArgv
sys.exit(2)
SystemExit: 2
======================================================================
ERROR: test open and read of an http: URL
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_lib_utils.py", line 98, in test9
b = open_and_read('http://www.reportlab.com/rsrc/encryption.gif')
File "c:\Python24\reportlab\lib\utils.py", line 461, in open_and_read
return open_for_read(name,mode).read()
File "c:\Python24\reportlab\lib\utils.py", line 457, in open_for_read
raise IOError('Cannot open resource "%s"' % name)
IOError: Cannot open resource
"http://www.reportlab.com/rsrc/encryption.gif"
======================================================================
ERROR: Make a platypus document
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_platypus_general.py", line 568,
in test0
run()
File "C:\Python24\reportlab\test\test_platypus_general.py", line 560,
in run
doc.build(commentary,examples)
File "C:\Python24\reportlab\test\test_platypus_general.py", line 546,
in build
self.fillFrame(flowables2)
File "C:\Python24\reportlab\test\test_platypus_general.py", line 537,
in fillFrame
self.handle_flowable(flowables)
File "c:\Python24\reportlab\platypus\doctemplate.py", line 562, in
handle_flowable
if self.frame.add(f, self.canv, trySplit=self.allowSplitting):
File "c:\Python24\reportlab\platypus\frames.py", line 124, in _add
w, h = flowable.wrap(aW, h)
File "c:\Python24\reportlab\platypus\flowables.py", line 360, in wrap
return (self.drawWidth, self.drawHeight)
File "c:\Python24\reportlab\platypus\flowables.py", line 354, in
__getattr__
self._setup_inner()
File "c:\Python24\reportlab\platypus\flowables.py", line 333, in
_setup_inner
img = self._img
File "c:\Python24\reportlab\platypus\flowables.py", line 350, in
__getattr__
self._img = ImageReader(self._file)
File "c:\Python24\reportlab\lib\utils.py", line 519, in __init__
self.fp = open_for_read(fileName,'b')
File "c:\Python24\reportlab\lib\utils.py", line 457, in open_for_read
raise IOError('Cannot open resource "%s"' % name)
IOError: Cannot open resource
"http://www.reportlab.com/rsrc/encryption.gif"
======================================================================
ERROR: test0 (test_platypus_pto.BreakingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python24\reportlab\test\test_platypus_pto.py", line 152, in
test0
_breakingTestCase(self)
File "C:\Python24\reportlab\test\test_platypus_pto.py", line 136, in
_breakingTestCase
ptoblob('2 PTO (inner
split)',[ColorParagraph('pink',text0,bt),PTOContainer([ColorParagraph(bl
ack,'Inner
Starts',H1),ColorParagraph('yellow',text2,bt),ColorParagraph('black','In
ner Ends',H1)],t1,h1),ColorParagraph('magenta',text1,bt)],t0,h0)
File "C:\Python24\reportlab\test\test_platypus_pto.py", line 49, in
ColorParagraph
return Paragraph('<para color=%s>%s</para>' % (c,text),style)
File "c:\Python24\reportlab\platypus\paragraph.py", line 378, in
__init__
self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
File "c:\Python24\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 132 tests in 111.610s
FAILED (errors=7)
Logs and output files written to folder
"c:\docume~1\riaanl~1.spe\locals~1\temp\ReportLab_tmp\reportlab_test"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050907/759b9f3c/attachment-0001.html
More information about the reportlab-users
mailing list