[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-xml-sig
Subject:    [XML-SIG] AW: sax reader not available
From:       Erik.Isokangas () hochtief ! de (Isokangas, Erik  HTC/DE/FRA)
Date:       2003-01-09 7:57:21
Message-ID: 0951584E7226D411963800D0B73E5B42014BFABC () GDMXS050
[Download RAW message or body]

Problem solved.  I simply needed to re-install pygoogle.  Something got
broken along the way.

The coffee must have been stale yesterday.

Sorry for the inconvenience.

Regards,

Erik.


> -----Ursprüngliche Nachricht-----
> Von:	Isokangas, Erik  HTC/DE/FRA 
> Gesendet am:	Wednesday, 8 January 2003 3:20 PM
> An:	'xml-sig@python.org'
> Betreff:	AW: sax reader not available
> 
> As an adendum to my previous e-mail: I found a similar problem referenced
> at...
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=999e7ee9.021128
> 1048.786d3867%40posting.google.com&rnum=3&prev=/groups%3Fhl%3Den%26lr%3D%2
> 6ie%3DISO-8859-1%26q%3D%2522__init__()%2Btakes%2Bat%2Bleast%2B2%2Bargument
> s%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üngliche Nachricht-----
> 	Von:	Isokangas, Erik  HTC/DE/FRA 
> 	Gesendet am:	Wednesday, 8 January 2003 2:20 PM
> 	An:	'xml-sig@python.org'
> 	Betreff:	
> 
> 	Hi,
> 
> 	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).
> 
> 	The install seem to work fine.  However, now when I try to do a
> google search I get the following error...
> 
> 	>>> data = 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 = parseSOAPRPC(r, attrs = 1)
> 	  File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py",
> line 2818, in parseSOAPRPC
> 	    t = _parseSOAP(xml_str, rules = rules)
> 	  File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py",
> line 2790, in _parseSOAP
> 	    parser = 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)
> 
> 
> 
> 	Can you suggest what may be the problem here?  
> 
> 	Thanks very much for your help.
> 
> 	Erik Isokangas.
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic