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
0
votes
0 answers

socket recv hangs forever or timeout

I'm using rpyc package to communicate between server and client. Everything was worked fine until today. My client pc can't receive message from server. So I run socket server: $ python bin/rpyc_classic.py INFO:SLAVE/18812:server started on…
Arti
  • 7,356
  • 12
  • 57
  • 122
0
votes
2 answers

xmlrpc.client.Fault when calling an xmlrpc method from rpyc

I'm trying to build a system with two processes: an xmlrpc server with a "ping" method and a QCoreApplication middleware. The middleware has an xmlrpc client which connects to the xmlrpc server. The middleware also acts as an RPyC server. I want to…
White_Rabbit
  • 115
  • 2
  • 7
0
votes
0 answers

Access to Class members in another file using rpyc without import

Say in server.py import rpyc class MyError(Exception): def __init__(self, message): super(MyError, self).__init__(message) self.error = message def foo1(self): self.error_type = 1 def foo2(self): …
Einiemand
  • 302
  • 1
  • 8
0
votes
0 answers

Command not found when remote run cmd with RPYC

I started rpyc_classic service on slave A Here is the PATH in…
Snowy
  • 96
  • 4
0
votes
1 answer

Initilize COM Object on Python Rpyc Server and re-use it?

I am using rpyc python server to process requests sent by email. I am loading them into an Excel blotter and the idea is to auto-update the excel by running a macro once a new request is received. However, I cannot initialize a workbook object. The…
toniggg
  • 87
  • 8
0
votes
1 answer

How to avoid 'paramiko' which restricts me to limited python usage on remote machine?

I have distributed system to test (e.g. hadoop), so my test cluster has 10 to 20 machines. We have developed test automation suite which we trigger from outside of the test cluster. Being a system remotely located we are not able to leverage python…
arpit
  • 11
  • 3
0
votes
1 answer

COM error while reconnecting to UIA app using Pywinauto through RPyC

I have connected to a windows app using pywinauto like below, import subprocess sp = subprocess.call("start shell:AppsFolder\myapp!App", shell=True) from pywinauto import application app = application.Application(backend="uia") my_app =…
Suresh Kota
  • 305
  • 1
  • 6
  • 19
0
votes
1 answer

Napster-style peer-to-peer (P2P) file sharing system using rpyc and message-orianted(Python)

I have a task in which I should make Napster-style peer-to-peer (P2P) file sharing system. I used rpyc and message-oriented at the same time, but I have a problem when I download a file from other peer - the code just runs infinite and never stops,…
0
votes
1 answer

Interact with stored python objects on server

I want to keep a python class permanently alive so I can continually interact with it. The reason for this is that this class is highly memory intensive which means that (1) I cannot fit it into memory multiple times, and (2) Loading the class is…
Louis-Philippe
  • 159
  • 2
  • 9
0
votes
1 answer

Error running shell command with subprocess.check_call()

# -*- coding: utf-8 -*- import rpyc conn = rpyc.classic.connect(r"xx.xx.xx.xx") s = conn.modules.subprocess.check_output(['file',u'`which dd`']) print s Output is: `which dd`: cannot open ``which dd`' (No such file or directory) Process finished…
0
votes
1 answer

Iptables default chains priority?

In order to check the RPyC module, I created 2 VM's (Ubuntu and Xubuntu), and tried to communicate between them. At first, I ran the RPyC server on the ubuntu VM, and connected from the Xubuntu VM. Went well! Then, I switched between them. I ran the…
Idan Ofek
  • 87
  • 1
  • 2
  • 13
0
votes
1 answer

Update client's GUI widget from Server with RFC widget

I make simple GUI chat program with python from server call callback function: def broadcast(self, msg): with lock: print("bloadcast calls") global callbacks global buf for user, callback in callbacks.items(): …
0
votes
0 answers

Update client widget from server with rpyc callback

I want to edit all client QTextBrowser logs when any client sends some message to server. my intended procedure is this: [client]enter -> [client]chatUI.handleEnter -> (RFC)[server]exposed_send -> [server]broadcast -> (RFC)[clients]update.emit() ->…
0
votes
0 answers

using python RPYC send a broadcast message to all connections

I am connecting to multi client using rpyc from script. rpyc.classic.connect("192.xx.xx.1") rpyc.classic.connect("192.xx.xx.2") rpyc.classic.connect("192.xx.xx.3") Is there any mechanism to send a broadcast message to all the rpyc clients from…
0
votes
0 answers

rpyc : subprocess doesn’t work. it throws error : specified file not found

I am using RpYC to execute commands on remote machine. When I run the below mentioned code, I get error message stated below: Error: >>> c = rpyc.classic.connect("server1") >>> proc = c.modules.subprocess.Popen("ls", stdout = -1, stderr =…
HE-MAN
  • 33
  • 5