On 05 December 2011 14:34 Burak Arslan wrote:
> 
> On 12/05/11 10:10, Frank Millman wrote:
> > After a bit of investigation I made the following change, in
> > rpclib/interface/xml_schema/_base.py, line 133 -
> >
> > -   f = open(file_name, 'w')
> > +   f = open(file_name, 'wb')
> >
> > The program then ran successfully, and I could view the 
> wsdl in a browser.
> >
> > Hope this is useful.
> >
> > Frank Millman
> >
> 
> Hi Frank,
> 
> Wow, so that's the only thing needed to change in order to get rpclib 
> running under python 3? Do the examples work?
> 
> I committed your patch to my personal fork. It'll be in the 
> next rpclib 
> release. Thanks for your time.
> 

Well, I did say I was dabbling ;-)  I have not done any extensive tests.

I tried to run rpclib_client.py from the examples, and got the following -

Traceback (most recent call last):
  File "F:\junk\rpclib\usermanager\rpclib_client.py", line 60, in <module>
    retval = c.service.add_user(u)
  File
"C:\Python32\lib\site-packages\rpclib-2.4.7_beta-py3.2.egg\rpclib\client\
http.py", line 33, in __call__
    out_string = ''.join(self.ctx.out_string) # FIXME: just send the
iterable to
 the http stream.
TypeError: sequence item 0: expected str instance, bytes found


I am no expert, so unfortunately I don't know what the correct fix would be.

I ran the following from ./examples -
  binary_http.py
  binary_soap.py
  complex.py
  events.py
  helloworld_http.py
  helloworld_soap.py
  override.py

They all successfully got to the point where they were 'listening', so they
seem to be working.

Would you like me to run any other tests while I have the setup available?

Frank

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to