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
1
vote
1 answer

Python: remote logging with rpyc

Hi I'm using the rpyc module to connect to a remote machine and execute some stuff on it. In process the remote machine might log some stuff so I need to redirect it to my local machine. In attempt to redirect the logs I've encountered this weird…
Bob Sacamano
  • 699
  • 15
  • 39
1
vote
0 answers

Restart rpyc using paramiko

I need to restart the rpyc on a remote machine using paramiko. I've tried doing: import paramiko import rpyc import time def get_session(ip): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) …
Bob Sacamano
  • 699
  • 15
  • 39
1
vote
0 answers

Rpyc: one client to many servers

How do I connect the same client to many servers? I've tried: c0 = rpyc.classic.connect(ip0) async_update0 = rpyc.async(c0.modules["some_module"].some_function) async_result0 = async_update0() c1 = rpyc.classic.connect(ip1) async_update1 =…
Bob Sacamano
  • 699
  • 15
  • 39
1
vote
1 answer

Adding custom module via RPyC

I'm trying to add a new module to a connection. I have the following files: main.py UpdateDB.py In UpdateDB: def UpdateDB(): ... In main.py: import UpdateDB import rpyc conn = rpyc.classic.connect(...) rpyc.utils.classic.upload_package(conn,…
Bob Sacamano
  • 699
  • 15
  • 39
1
vote
0 answers

Python service similar to rpyc.Service but only local

A very naive question... I need to have a central Python program offering services to other Python applications (all running on the same machine). The easiest for me would be that the other applications could directly call functions provided by the…
paugier
  • 1,838
  • 2
  • 20
  • 39
1
vote
1 answer

subprocess.call with rpyc throwing error

I am using RPyc to execute commands on remote machine. I am getting error when I run the following code: cmd = ['clonetst.exe', 'C:\\Users\\pqalinux\\Desktop\\Flowcontrol.tst', 'C:\\Users\\pqalinux\\Desktop\\lst_20150819_110008.lst',…
Suresh Kota
  • 305
  • 1
  • 6
  • 19
1
vote
0 answers

RPyC Client to Client send message freeze

I'm trying to send a message from a client to another client using RPyC. For the moment I use the following code, I launch the server first then I connect and "register" clients to the server ( I could've done that to the on_connect() method too ...…
GuillaumeJ
  • 66
  • 6
1
vote
1 answer

How to start an rpyc server?

I recently installed rpyc on my Ubuntu 14.04 Virtual machine using: pip install rpyc i cannot find the file which can be used to start the server. I have looked in many places but to no avail.
Ali Iqbal
  • 87
  • 1
  • 9
1
vote
1 answer

Python lists being collected by GC

I've been reading about weak and strong references in Python, specifically regarding errors that look like ReferenceError: weakly-referenced object no longer exists Here I have a basic RPC interface that passes objects from client to server, where…
danfang
  • 11
  • 1
  • 3
1
vote
1 answer

issue with rpyc marshalling of objects

I am using rpyc (v 3.3.0) to get the list of processes running on a remote server using psutil module. My code is as below. server='hkl20056309' rpcClient = rpyc.classic.connect(server) rpsutil = rpcClient.modules.psutil procs =…
Alok
  • 3,160
  • 3
  • 28
  • 47
1
vote
1 answer

how to get the output of a command via rpyc?

I need to run a command via rpyc and get the result of this command. But whenever I run the command, it is printed on the remote server and can not bring the result. What I am doing is the following: import os, sys import rpyc conn =…
Diogo Leal
  • 97
  • 1
  • 5
1
vote
1 answer

What would be the pythonic way to simulate communication with an external equipment? RPyC?

Think of a situation where a Python script sends commands to an external device,let's say, via serial port. The script resides on some Linux machine and the equipment reacts to some commands. The idea is to simulate all this chain on my machine by…
flamenco
  • 2,702
  • 5
  • 30
  • 46
1
vote
1 answer

How to restart classic_server of RPyC in remote console?

I want to restart classic_server of RPyC in Linux through remote console but I do not know how to restart it. so I create a bash to kill all python process, and then restart classic_server but when I'm call it in remote console through subprocess ,…
Alex Chan
  • 1,116
  • 3
  • 15
  • 33
0
votes
0 answers

Python RPyC share server state between two clients in different processes

I suspect the answer is "no, this is not possible", but I want to check with people who have actual familiarity with the library. Background I have an application where there are many parallel processes doing similar computations. The computations…
bcdan
  • 1,438
  • 1
  • 12
  • 25
0
votes
0 answers

RPyC connect_multiprocess(): Changing 'sync request timeout' not working

I can't change sync request timeout in connection established using connect_multiprocess() from RPyC module. I have tried changing sync_request_timeout to a different value like this self._conn =…
kozprog
  • 1
  • 1