I am trying to create my own Service using python 2.7 and RPyC 3.2.3.  
I have removed any customl functions and create a service using the 
following syntax:

class MyService(rpyc.Service):
      # stripped out all my functions for now

# start the service
t = ThreadedServer(MyService(args.name), port = int(port)) #passed as a 
parameter

t.start()

#################

I then try to connect to this service simply via:

rpyc.utils.factory.connect('localhost',int(replicaPort))

I have also tried:

rpyc.connect('localhost',int(port),MyService    

rpyc.connect('',int(port))   
and a number of other variations, but they all give me back the same error:

TypeError  'MyService' object is not callable.

Does anyone know why this is happening or have any suggestions as to how I 
can troubleshoot this error?  Thanks in advance!

-Mark



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to