Questions tagged [rpyc]

A transparent python library for symmetrical remote procedure calls, clustering and distributed-computing.

RPyC (IPA: /ɑɹ paɪ siː/, pronounced like are-pie-see), or Remote Python Call, is a transparent python library for symmetrical remote procedure calls, clustering and distributed-computing. RPyC makes use of object-proxying, a technique that employs python’s dynamic nature, to overcome the physical boundaries between processes and computers, so that remote objects can be manipulated as if they were local.

96 questions
2
votes
2 answers

Passing functions are parameters in RPyC

I'm trying to encapsulate a whole bunch of logic into one Python function and pass that as an argument to remote RPyC method where I want to execute it on the server. But RPyC treats the function as a callback and execute it locally. Is there a way…
mottosan
  • 466
  • 3
  • 14
2
votes
1 answer

Rpyc interfacing between two clients and one server

So right now I have rpyc client A that scrapes data and when it finds specific data it sends it to my rpyc server which is then stored. Lets say that I also have rpyc client B, C and D connected to my rpyc server as well. How can I make it so that…
ark
  • 749
  • 3
  • 8
  • 29
2
votes
2 answers

Python rpyc "socket.error: [Errno 113] No route to host"

I have two machines using python rpyc ,one is server(ip:10.0.3.120), another is client(ip:10.0.3.197). The code shows below: Server (ip:10.0.3.120) from rpyc import Service from rpyc.utils.server import ThreadedServer class TestService(Service): …
changzhi
  • 2,641
  • 9
  • 36
  • 46
2
votes
2 answers

why is monkeyrunner not working when run from a remote machine?

I need to run a monkeyrunner script in a remote machine. I'm using python to to automate it and RPyC so that I could connect to other machines, everything is running in CentOS. written below is the command that I used: import rpyc import…
srh snl
  • 797
  • 1
  • 19
  • 42
1
vote
1 answer

How to implement username password authenticator for RPyC server

I am trying to secure my RpyC server connections through username and password. The documentation indeed shows an example, but it is too brief. No details were given on how exactly the password is passed from the client-side. Anyone figured out how…
m0hithreddy
  • 1,752
  • 1
  • 10
  • 17
1
vote
1 answer

Does rpyc caching on remote host. How to clean it?

I'm using Python 3 on the Linux box and classic rpyc to the same host. Having the simple python file, tst.py, in the current directory with two lines in it: a = {'a': 0} b = 3 Then I run the following commands: >>> import rpyc; conn =…
Sergey D
  • 11
  • 2
1
vote
0 answers

How to pass parameters pickled and not netref in rpyc callback

Hi I have a scenario where i have an RPYC classic server and a callback registered to some operation. Parameters that are passed back on the callback are protobuf messages. (This is my system and i cannot change it). Now i noticed that callback is…
sashas
  • 531
  • 1
  • 3
  • 14
1
vote
1 answer

Unable to convert RPYC netref of a dataframe to local variable

I am currently generating a dataframe on a RPYC server and what to send this to the client when requested. When I send it across the server it is sent as a netref object. I want to be able to store this as a local variable on the client-side and not…
1
vote
2 answers

Shutdown RPyC server from client

I've created a RPyC server. Connecting works, all my exposed methods work. Now I am looking to shut down the server from the client. Is this even possible? Security is not a concern as I am not worried about a rogue connection shutting down the…
Stone Monarch
  • 325
  • 2
  • 15
1
vote
1 answer

rpyc server call client method

I am currently using rpyc for constructing a server and multiple clients that will connect to it. I have data in the clients that I would like to push to the server for further processing, and I would like to do it with the server calling a client…
Rick Chow
  • 11
  • 3
1
vote
2 answers

rpyc - how can I get a list of exposed functions of a connection

I have a small number of rpyc servers that only partially have the same exposed functions. On the client events should be forwarded to all servers that have connected and are interested in the specific events. I would like to get a list of…
juerg
  • 479
  • 5
  • 16
1
vote
1 answer

ev3 closes connection when I attempt to connect through rpyc in python

I installed ev3dev on my ev3 brick so I could create programs on it with python. I am trying to use the "rpyc" library for python which can be found here. However, when I try to run this basic script which is given as an example on the link…
malteasy
  • 87
  • 9
1
vote
1 answer

I am trying to change the value of an exposed variable in RPyC. I receive an error. What am I doing wrong?

I am using RPyC for a client-server application. I try to change the value of exposed_variable when I call exposed_change() method. I receive "UnboundLocalError: local variable 'exposed_variable' referenced before assignment" error. However, if I…
SomeoneNew
  • 91
  • 9
1
vote
2 answers

RPyC SSH connection

I'm trying to establish a client-server connection using RPyC between 2 VM instances on google cloud. I have the following code: SERVER side: import rpyc class MyService(rpyc.Service): def on_connect(self): # code that runs when a…
1
vote
1 answer

RPyC serve_all blocking threads access to connection

When in a multithreaded application i call rpyc.Connection.serve_all() from a thread other threads are unable to immediately use the connection. I think that serve_all is blocking the connection and the other threads are able to access it only when…