Hi Michael and Dieter, I am thankful for youe timely help>I have been trying different optionas and have still nto suceeded in running an XML-RPC example.Could you please guide me here as to how to go about it.. I am trying the example from http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=2 for testing XML-RPC using python.. My system configuration is: Mandrake-8.0 Postgres7.2 Zope -2.5.1 Python-2.1.1 I have tried this code after installing the xmlrpclib-1.0.1 directory in the Python-2.1.1/Lib folder Hence on importing xmlrpclib it does not throw any error. Now the next step detailed is
d=xmlrpclib.Server('http://192.168.10.4:8080/index_html', ... xmlrpclib.BasicAuthTransport('admin','admin'))
This throws the error : Traceback (most recent call last): File "<stdin>", line 2, in ? AttributeError: 'xmlrpclib' module has no attribute 'BasicAuthTransport' Could you plese tell me where I have gone wrong I am not being able to get it running properly. There is a setup.py file in xmlrpclib-1.0.1 Should I be doing any setup ?? Please help me out here I would like to thank all for helping me . Best Regards John Kunchandy Hi, Am Fre, 2003-01-10 um 16.25 schrieb zope:
Hi All
I am trying to create an application that receives xml format requests from a client and sends the response in Xml format
I have tried the example given at : http://www.zope.org/Members/teyc/howxmlrpc My system configuration is: Zope-2.5.1 Python-2.2.2 Linux 2.4.8-26mdk ERROR: sys.append('/Software/Python-2.2.2/python') Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'append'
sys.append
I guess this should be sys.path.append(...) Seems to be a typo in the xmlrpc-tutorial.
Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'append'
s=xmlrpclib.Server("http://192.168.10.4:8080") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Software/Python-2.2.2/Lib/xmlrpclib.py", line 948, in __init__ import urllib File "/Software/Python-2.2.2/Lib/urllib.py", line 26, in ? import socket File "/Software/Python-2.2.2/Lib/socket.py", line 41, in ? from _socket import * ImportError: libssl.so.1: cannot open shared object file: No such file or directory This looks like the socket-module can't locate the ssl libs. Did you compile Python from source ? If not, you should.
BTW, Python 2.1.3 is recommended for Zope 2.5.1 ... HTH, Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 12/30/2002