[XML-SIG] Re: SAX Drivers comparisons.

Stefane Fermigier sf@fermigier.com
Mon, 15 May 2000 17:40:45 +0200


Lars Marius Garshol larsga@garshol.priv.no:
> I tried this experiment again, this time on a different Linux box with
> Python 1.5.2 and with pyexpat compiled and installed, and also with
> the CVS tree first on the PYTHONPATH.
> 
> This time I got this result:
> 
> [larsga@pc-larsga tmp]$ python fermigier.py content.example.txt 
> !!! xml.sax.drivers.drv_sgmlop Error No parsers found
> Parser: xml.sax.drivers.drv_pyexpat, time: 0.180707, 2877 bytes written.
> !!! xml.sax.drivers.drv_xmltok Error No parsers found
> Parser: xml.sax.drivers.drv_xmlproc, time: 0.613989, 2877 bytes written.
> !!! xml.sax.drivers.drv_xmltoolkit Error No parsers found
> Parser: xml.sax.drivers.drv_xmllib, time: 1.596865, 13025 bytes written.
> !!! xml.sax.drivers.drv_xmldc Error No parsers found

OK, now I get the same results (strange), using either PyXML-0.54 or the CVS
source (python 1.5.2 on Mandrake 7.0.)

Installing the CVS version gives me annonying error messages:

--
[root@r76m64 xml]# python setup.py install 2>&1 | more
make: Nothing to be done for `default'.
  File "/usr/lib/python1.5/site-packages/xml/parsers/xmlproc/catalog.py", line
4
    """
An SGML Open catalog file parser.
$Id: catalog.py,v 1.8 2000/05/12 18:39:58 lars Exp $
"""
       
                                 
                                                    
   ^
SyntaxError: invalid syntax
--

Regarding sgmlop, I still get:

!!! xml.sax.drivers.drv_sgmlop Error function requires exactly 1 argument; 2
given

The exact traceback is:

Traceback (innermost last):
  File "feed_test", line 21, in ?
    parser.setDocumentHandler(ContentHandler(buff))
  File "/usr/lib/python1.5/site-packages/xml/sax/drivers/drv_sgmlop.py", line
29, in setDocumentHandler
    self.parser.register(DHWrapper(dh), 1)
TypeError: function requires exactly 1 argument; 2 given

	S.

-- 
Stéfane Fermigier, Tel: 06 63 04 12 77 (mobile).
<www.portalux.com>: le portail Linux / logiciel libre.
"Amazon: we patent the dot in .com"