[Zope] Re:Error in XML-RPC

zope zope@stylusinc.net
Mon, 13 Jan 2003 14:20:29 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_007B_01C2BB0E.ECE03C90
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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..=20

I am trying the example from=20

http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=3D2

for testing XML-RPC using python..

My system configuration is:
Mandrake-8.0=20
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=20

>>>d=3Dxmlrpclib.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
>=20
> I am trying to create an application that receives xml format requests =
from
> a client
> and sends the response in Xml format
>=20
> 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=20

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=3Dxmlrpclib.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=20




---
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

------=_NextPart_000_007B_01C2BB0E.ECE03C90
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>
<DIV><FONT face=3DArial size=3D2>Hi Michael and Dieter,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am thankful for youe timely help&gt;I =
have been=20
trying different optionas and have still nto suceeded&nbsp;in running an =
XML-RPC=20
example.Could you please guide me here as to how to go about=20
it..</FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying the example from =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=3D2">http=
://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=3D2</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>for testing XML-RPC using =
python..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My system&nbsp;configuration =
is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Mandrake-8.0 </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Postgres7.2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Zope -2.5.1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Python-2.1.1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have tried this code after installing =
the=20
xmlrpclib-1.0.1 directory in the Python-2.1.1/Lib folder</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hence on importing xmlrpclib =
</FONT>&nbsp;<FONT=20
face=3DArial size=3D2>it does not throw any error.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Now the next step detailed is =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>&gt;&gt;&gt;d=3Dxmlrpclib.Server('http://192.168.10.4:8080/index=
_html',<BR>...=20
xmlrpclib.BasicAuthTransport('admin','admin'))</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This throws the error :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Traceback (most recent call =
last):<BR>&nbsp; File=20
"&lt;stdin&gt;", line 2, in ?<BR>AttributeError: 'xmlrpclib' module has =
no=20
attribute 'BasicAuthTransport'<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Could you plese tell me where I have =
gone=20
wrong</FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>I am not being able to get it =
running=20
properly.</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>There is a setup.py file in=20
xmlrpclib-1.0.1</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Should I be doing any setup=20
??</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Please help me out =
here</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>I would like to thank all for =
helping me=20
.</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Best Regards</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>John =
Kunchandy</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT=20
size=3D2></FONT>&nbsp;</DIV></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>Hi,<BR><BR>Am=20
Fre, 2003-01-10 um 16.25 schrieb zope:<BR>&gt; Hi All<BR>&gt; <BR>&gt; I =
am=20
trying to create an application that receives xml format requests =
from<BR>&gt; a=20
client<BR>&gt; and sends the response in Xml format<BR>&gt; <BR>&gt; I =
have=20
tried the example given at :<BR>&gt; </FONT><A=20
href=3D"http://www.zope.org/Members/teyc/howxmlrpc"><FONT face=3D"Times =
New Roman"=20
size=3D3>http://www.zope.org/Members/teyc/howxmlrpc</FONT></A><BR><FONT=20
face=3D"Times New Roman" size=3D3>&gt; My system configuration =
is:<BR>&gt;=20
Zope-2.5.1<BR>&gt; Python-2.2.2<BR>&gt;&nbsp; Linux 2.4.8-26mdk<BR>&gt;=20
ERROR:<BR>&gt; sys.append('/Software/Python-2.2.2/python')<BR>&gt; =
Traceback=20
(most recent call last):<BR>&gt;&nbsp;&nbsp; File "&lt;stdin&gt;", line =
1, in=20
?<BR>&gt; AttributeError: 'module' object has no attribute =
'append'<BR>&gt;=20
&gt;&gt;&gt; sys.append<BR><BR>I guess this should be=20
<BR><BR>sys.path.append(...)<BR>Seems to be a typo in the=20
xmlrpc-tutorial.<BR><BR><BR>&gt; Traceback (most recent call=20
last):<BR>&gt;&nbsp;&nbsp; File "&lt;stdin&gt;", line 1, in ?<BR>&gt;=20
AttributeError: 'module' object has no attribute 'append'<BR>&gt; =
&gt;&gt;&gt;=20
s=3Dxmlrpclib.Server("</FONT><A href=3D"http://192.168.10.4:8080"><FONT=20
face=3D"Times New Roman" =
size=3D3>http://192.168.10.4:8080</FONT></A><FONT=20
face=3D"Times New Roman" size=3D3>")<BR>&gt; Traceback (most recent call =

last):<BR>&gt;&nbsp;&nbsp; File "&lt;stdin&gt;", line 1, in=20
?<BR>&gt;&nbsp;&nbsp; File "/Software/Python-2.2.2/Lib/xmlrpclib.py", =
line 948,=20
in __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; import =
urllib<BR>&gt;&nbsp;&nbsp;=20
File "/Software/Python-2.2.2/Lib/urllib.py", line 26, in=20
?<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; import socket<BR>&gt;&nbsp;&nbsp; File =

"/Software/Python-2.2.2/Lib/socket.py", line 41, in=20
?<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; from _socket import *<BR>&gt; =
ImportError:=20
libssl.so.1: cannot open shared object file: No such file or<BR>&gt;=20
directory<BR>This looks like the socket-module can't locate the ssl =
libs.<BR>Did=20
you compile Python from source ? If not, you should.<BR><BR>BTW, Python =
2.1.3 is=20
recommended for Zope 2.5.1 ...<BR><BR>HTH,<BR><BR>Michael =
</FONT><BR></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D3></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman" size=3D3><BR>---<BR>Outgoing mail is =
certified=20
Virus Free.<BR>Checked by AVG anti-virus system (<A=20
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =
6.0.435 /=20
Virus Database: 244 - Release Date: =
12/30/2002</FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_007B_01C2BB0E.ECE03C90--