SOAP.py and Python 2.1.1

Graham Dumpleton grahamd at dscpl.com.au
Sun Oct 7 20:05:54 EDT 2001


Gabriel Ambuehl <gabriel_ambuehl at buz.ch> wrote in message news:<mailman.1002463926.1088.python-list at python.org>...
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Hello,
> I'm trying to get SOAP.py V.0.9.7 to work on Python 2.1.1 (built from
> ports on a FreeBSD 4.4 box). While the server starts like it should,
> the client won't even send out a query but instead prints the
> following traceback:
> serv.addAccount(ownerid=2, customerid=1, accounttype=3,
> webserverid=111, mailserverid=111, adminserverid=111,
> webmailserverid=111, mysqlserverid=111, domainname="buz-test.com",
> password='aaakkaa',  quota_webspace=100, quota_emailaccounts=50,
> quota_forwarders=-1, quota_autoresponders=-1, quota_mailinglists=10,
> quota_ftpaccounts=10, quota_subdomains=100)
>   File "SOAP.py", line 3603, in __r_call
>     self.__hd, self.__ma)
>   File "SOAP.py", line 3523, in __call
>     p, attrs = parseSOAPRPC(r, attrs = 1)
>   File "SOAP.py", line 2804, in parseSOAPRPC
>     t = _parseSOAP(xml_str, rules = rules)
>   File "SOAP.py", line 2776, in _parseSOAP
>     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)
> xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
> 
> 
> This confuses me cause I thought xml should be available from stock
> and I've even got expat-1.2 and expat 1.95 installed so what's wrong
> here?

Hmmm, that is generally what happens when expat isn't there, unless
how it got installed was a bit strange. Maybe the fact you have two
versions installed somehow causes a problem.

Only wisdom I can offer is that when I upgraded my box lately there was
no expat, but I installed PyXML which comes with expat and SOAP.py
worked fine. PyXML actually installs in _xmlplus, with expat under there
somewhere, but it does something so that even when xml is used, it
still finds the parser.

No idea otherwise.



More information about the Python-list mailing list