[Zope] PyGoogle and Zope's Python
Juergen R. Plasser / Hexagon
plasser@hexagon.at
Tue, 16 Apr 2002 14:12:28 +0200
Hi all!
I hope this is not offtopic here because it's mainly regarding Python...
I've just tried to use PyGoogle
(http://diveintomark.org/projects/#pygoogle, a python wrapper for the
google api, www.google.com/apis) on my Zope's Python installation, but it
throws an exception:
Python 2.1.2 (#1, Jan 25 2002, 13:17:56)
[GCC 2.7.2.3] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import google
>>> google.LICENSE_KEY = '...'
>>> data = google.doGoogleSearch('python')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/zope/2-5-0/lib/python2.1/google.py", line 160, in
doGoogleSearch
safeSearch, language, inputencoding, outputencoding)
File "/usr/local/zope/2-5-0/lib/python2.1/SOAP.py", line 3616, in __r_call
self.__hd, self.__ma)
File "/usr/local/zope/2-5-0/lib/python2.1/SOAP.py", line 3536, in __call
p, attrs = parseSOAPRPC(r, attrs = 1)
File "/usr/local/zope/2-5-0/lib/python2.1/SOAP.py", line 2816, in
parseSOAPRPC
t = _parseSOAP(xml_str, rules = rules)
File "/usr/local/zope/2-5-0/lib/python2.1/SOAP.py", line 2788, in
_parseSOAP
parser = xml.sax.make_parser()
File "/usr/local/zope/2-5-0/lib/python2.1/xml/sax/__init__.py", line 88,
in make_parser
raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
^^^^^^^^^^^^^^^^
I have installed the binary distribution of Zope 2.5.0 on a Linux box. Do I
have to install Expat or any other xml parser?
On my Win32 installation (2.5.1b1/Win2k2) everything worked fine, Q: Are
there differences between Linx and Win (in the Zope distribution of course)?
Juergen
--
Juergen Plasser
plasser@hexagon.at