[reportlab-users] Help resolving ReportLab test errors

Robin Becker reportlab-users@reportlab.com
Wed, 31 Jul 2002 17:02:20 +0100


In article <BF29597B-A493-11D6-B82C-00039345C610@darwin.in-berlin.de>, Dinu Gherman
<gherman@darwin.in-berlin.de> writes
>Marc Stober:
>
>> Problem #1 is several XML parser errors when the User Guide is 
>> generated. It
>> appears there are unescaped < and & that are passed on to an XML parser 
>> in
>> some of the files. If I remove these characters the User Guide scripts 
>> run
>> successfully. Is this a bug in the User Guide scripts (I guess not as I 
>> can
>> read it on the website) or do I have something configured incorrectly?
>
>I fixed that recently in CVS. Don't know who, but someone must
>have broken this. Normally, changes should be committed only
>after running the test suite...
>
>> Problem #2 is a message, "Failed to import renderPM" when I run the
>> runAll.py test script. Is this something else I need to install?
>
>What traceback to sdo you get? renderPM makes use of _renderPM,
>an optional library, but I don't know excatly what it is able
>to do *without* finding _renderPM. Robin's the guru here...
>
>Dinu
well I just checked on the freeBSD machine with latest CVS and see three errors only that relate
to SVG I think

======================================================================
ERROR: Test two strings in drawing.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 36, in test0
    svg = load(path)
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 17, in load
    doc = minidom.parse(path)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 910, in parse
    return _doparse(pulldom.parse, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 901, in _doparse
    events = apply(func, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/pulldom.py", line 289, in parse
    parser = xml.sax.make_parser()
  File "/usr/local/lib/python2.1/xml/sax/__init__.py", line 88, in make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
SAXReaderNotAvailable: No parsers found
======================================================================
ERROR: Test two strings in group in drawing.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 58, in test1
    svg = load(path)
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 17, in load
    doc = minidom.parse(path)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 910, in parse
    return _doparse(pulldom.parse, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 901, in _doparse
    events = apply(func, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/pulldom.py", line 289, in parse
    parser = xml.sax.make_parser()
  File "/usr/local/lib/python2.1/xml/sax/__init__.py", line 76, in make_parser
    return _create_parser(parser_name)
  File "/usr/local/lib/python2.1/xml/sax/__init__.py", line 101, in _create_parser
    return drv_module.create_parser()
AttributeError: 'xml.sax.expatreader' module has no attribute 'create_parser'
======================================================================
ERROR: Test two strings in transformed group in drawing.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 84, in test2
    svg = load(path)
  File "/rl_home/HTTPD/site-packages/reportlab/test/test_renderSVG.py", line 17, in load
    doc = minidom.parse(path)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 910, in parse
    return _doparse(pulldom.parse, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 901, in _doparse
    events = apply(func, args, kwargs)
  File "/usr/local/lib/python2.1/xml/dom/pulldom.py", line 289, in parse
    parser = xml.sax.make_parser()
  File "/usr/local/lib/python2.1/xml/sax/__init__.py", line 76, in make_parser
    return _create_parser(parser_name)
  File "/usr/local/lib/python2.1/xml/sax/__init__.py", line 101, in _create_parser
    return drv_module.create_parser()
AttributeError: 'xml.sax.expatreader' module has no attribute 'create_parser'
----------------------------------------------------------------------
Ran 103 tests in 668.951s

FAILED (errors=3)
/rl_home/site-packages/reportlab/test:
#

the python is
# python
Python 2.1.2 (#1, Feb 22 2002, 15:59:03)
[GCC 2.95.3 20010315 (release) [FreeBSD]] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>>

-- 
Robin Becker