[XML-SIG] AW: sax reader not available

Isokangas, Erik HTC/DE/FRA Erik.Isokangas@hochtief.de
Wed, 8 Jan 2003 15:20:22 +0100


As an adendum to my previous e-mail: I found a similar problem =
referenced
at...
http://groups.google.com/groups?hl=3Den&lr=3D&ie=3DUTF-8&threadm=3D999e7=
ee9.02112810
48.786d3867%40posting.google.com&rnum=3D3&prev=3D/groups%3Fhl%3Den%26lr%=
3D%26ie%
3DISO-8859-1%26q%3D%2522__init__()%2Btakes%2Bat%2Bleast%2B2%2Barguments%=
2522
%2Bgroup%253Acomp.lang.python.*%26btnG%3DGoogle%2BSearch

However, unlike the originator, import sax.parsers.expat works on my
machine.  The calls 'Mr.Man' use to create the failure also work on my
installation.

I built pyXML from source on a linux box under Python 2.1.3.  Should =
this
work?

Thanks for your thoughts,

Erik.


> -----Urspr=FCngliche Nachricht-----
> Von:	Isokangas, Erik  HTC/DE/FRA=20
> Gesendet am:	Wednesday, 8 January 2003 2:20 PM
> An:	'xml-sig@python.org'
> Betreff:=09
>=20
> Hi,
>=20
> A bit of history...
> I've been trying to use the pyGoogle module.  It seems to work fine =
on a
> PC/Win2k machine, but pyGoogle could not find a sax reader on my =
Linux
> server.  Both have python 2.1.3 installed.  Reading a newsgroup I =
learned
> about pyXML and decided to install it on the Linux box (hoping to get =
a
> working sax reader).
>=20
> The install seem to work fine.  However, now when I try to do a =
google
> search I get the following error...
>=20
> >>> data =3D google.doGoogleSearch('python')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.1/site-packages/pygoogle/google.py", =
line
> 311, in doGoogleSearch
>     safeSearch, language, inputencoding, outputencoding)
>   File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", =
line
> 3619, in __r_call
>     self.__hd, self.__ma)
>   File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", =
line
> 3539, in __call
>     p, attrs =3D parseSOAPRPC(r, attrs =3D 1)
>   File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", =
line
> 2818, in parseSOAPRPC
>     t =3D _parseSOAP(xml_str, rules =3D rules)
>   File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", =
line
> 2790, in _parseSOAP
>     parser =3D xml.sax.make_parser()
>   File "xml/sax/sax2exts.py", line 37, in make_parser
>     return XMLParserFactory.make_parser(parser_list)
>   File "xml/sax/saxexts.py", line 64, in make_parser
>     return self._create_parser(parser_name)
>   File "xml/sax/saxexts.py", line 43, in _create_parser
>     return drv_module.create_parser()
>   File "xml/sax/saxexts.py", line 74, in _create_parser
>     raise _exceptions.SAXReaderNotAvailable
> TypeError: __init__() takes at least 2 arguments (1 given)
>=20
>=20
>=20
> Can you suggest what may be the problem here? =20
>=20
> Thanks very much for your help.
>=20
> Erik Isokangas.
>=20