Namespace problem? [Newbie]
ewalstad
user at domain.invalid
Tue Jan 28 18:09:08 EST 2003
Hi all,
I'm messing around with SOAP.py, which needs xml.sax.make_parser()
I'm also using the python interpreter on my shell account on
starship.python.net
I start the python interpreter from /home/crew/ewalstad/site-packages
where I have the following the modules I need for SOAP:
[ewalstad at starship site-packages]$ pwd
/home/crew/ewalstad/site-packages
[ewalstad at starship site-packages]$ ll
total 172
lrwxrwxrwx 1 ewalstad ewalstad 16 Jan 28 16:59 SOAP.py ->
./SOAPpy/SOAP.py
-rw-rw-r-- 1 ewalstad ewalstad 141762 Jan 28 16:59 SOAP.pyc
drwxrwxr-x 9 ewalstad ewalstad 4096 Jan 28 16:27 SOAPpy
lrwxrwxrwx 1 ewalstad ewalstad 19 Jan 28 16:59 XMLname.py ->
./SOAPpy/XMLname.py
-rw-rw-r-- 1 ewalstad ewalstad 3586 Jan 28 16:59 XMLname.pyc
Here's my interpreter session (ip changed to protect the innocent):
[ewalstad at starship site-packages]$ python
Python 2.2.1 (#1, Jun 15 2002, 17:05:40)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import SOAP
>>> #SOAP.Config.debug = 1
... SOAP.Config.BuildWithNoType = 1
>>> SOAP.Config.BuildWithNoNamespacePrefix = 1
>>> server = SOAP.SOAPProxy ("http://192.168.1.100:8080")
>>> print server.about()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "SOAP.py", line 3677, in __call__
return self.__r_call(*args, **kw)
File "SOAP.py", line 3697, in __r_call
self.__hd, self.__ma)
File "SOAP.py", line 3607, in __call
p, attrs = parseSOAPRPC(r, attrs = 1)
File "SOAP.py", line 2827, in parseSOAPRPC
t = _parseSOAP(xml_str, rules = rules)
File "SOAP.py", line 2799, in _parseSOAP
parser = xml.sax.make_parser()
File "/usr/local/lib/python2.2/site-packages/PIL/__init__.py", line
93, in make_parser
# ;-)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
>>>
So my main questions are:
- Why is the PIL.__init__.make_parser() getting called when the code
is trying to execute "parser = xml.sax.make_parser()"
- How can I fix it if I don't have root?
Thanks in advance!
Eric.
More information about the Python-list
mailing list