Questions tagged [pyro4]

Pyro4 refers to version 4.x of the Pyro library. It enables you to build applications in which PYthon Remote Objects can talk to each other over the network, with minimal programming effort.

Pyro4 is version 4 of the Pyro library. It enables you to build applications in which Python remote objects can talk to each other over the network, with minimal programming effort.

You use normal Python method calls, with almost every possible parameter and return value type, and Pyro takes care of locating the right object on the right computer to execute the method. It is designed to be very easy to use, and to, generally, be non-obtrusive.

Pyro also provides a set of powerful features that enables you to build distributed applications rapidly and effortlessly. Pyro is written in 100% pure Python and therefore runs on many platforms and Python versions.

38 questions
1
vote
2 answers

Keras/TensorFlow error while running as Pyro4 Server

I have a client-server design using Pyro4, in which the client code is as follows: import Pyro4 uri = 'PYRO:PYRO_SERVER@123.123.123.123:10000 test_1 = Pyro4.Proxy(uri) test_1.run_model() The server-side code is as follows: import…
1
vote
1 answer

Exposing a bunch of functions through Pyro

I have a module called foobar and it contains a bunch of functions I would like to call remotely. My current solution is to wrap all those functions as static methods in a class and share that. Here's my code: pyro_server.py: import Pyro4 import…
user357269
  • 1,835
  • 14
  • 40
0
votes
0 answers

Pyro4 : Unable to determine seralize class type <_multiprocessing.PipeConnection>

I am completely new to Pyro4. Been trying a lot of things to get my task done. Remote machine Has a library in Python 2.7. Helps create an object for a hardware under test. Pyro4 based code to expose the library function used to create the…
Ai_Nebula
  • 39
  • 9
0
votes
0 answers

Delete a remote object from outside the distributed system

I have been playing around with Pyro, particularly Pyro5 and wanted to simulate some fault tolerance algorithms by creating a distributed system consisting of remote processes and RPC's using Pyro5 in Python. Does anybody know how to delete / crash…
0
votes
1 answer

Deserializing With Dill on Remote Pyro5 Object Yields Error

So I'm trying to have a remote Pyro5 object receive serialized arbitrary functions to execute them. The remote objects are run on a separate machine, registered on a Pyro5 name-server. The built in serializer (serpent) in Pyro5 does not support…
0
votes
1 answer

Create a systemd service script for multiple module app

I'm currently writing a python app forking with Pyro4 and flask. In order to start up the app I to need : Start pyro4 name server Register my object in the pyro4 name server Start a flask web app to access pyro4 objects I would like to do this…
0
votes
1 answer

How do I implement multiprocessing on different hosts using Pyro4

I'm trying to implement Pyro4 on different hosts. On a worker node, I implemented multiprocessing in this manner: import Pyro4 from multiprocessing import Pool, Manager @Pyro4.expose class PyroClass(object): def…
0
votes
2 answers

Pyro4 [Errno -2]

I am trying out pyro4 connection between my PC and Raspberry Pi 4. Code on my PC is: # saved as server.py import Pyro4, Pyro4.naming import socket, threading # Define an object that will be accessible over the network. # This is where all your code…
0
votes
1 answer

Example of connecting http gateway server to name server of Python Pyro

As a beginner in Python and programming, can you guys give me a code or provide the steps for the example of connecting http gateway server with name server in Python Pyro5 or Pyro4? I tried searching and tried couple of things by reading the doc…
Sujin Sam
  • 31
  • 1
  • 3
0
votes
1 answer

Pyro4: calling a remote method from a remote pyro object

I am attempting to call a Pyro object method p1.get_name() from another remote Pyro object p2. The method should return the name of the p1 object, but it is returning nothing (empty string). Surprisingly, I see that p1 is accessible from p2 because…
0
votes
1 answer

i can't create Distributed system on osbrain

I have 2 different computers. I want to make one of them a host and the other an agent sending information. I want to do this with osbrain. However, I am facing a problem. Host Agent is opening the server. 2. My agent connects to the server, but I…
0
votes
1 answer

How to get/config socket from Pyro Proxy

I want to set socket.TCP_KEEPIDLE of a Pyro4 object for keeping heartbeat. Is there any way to do this? Or workaround is also welcome. Thanks in advance.
Tom. W
  • 43
  • 3
0
votes
0 answers

Pyro4 random TimeoutError on receiveData

I've got a connection setup between two PCs using Pyro4, most of the time everything is working seamlessly, however sometimes I can get random TimeoutError like this: result = self.pyro_proxes[pyro_proxy_name].run_on_pool_controller(*args,…
RaStall
  • 55
  • 1
  • 4
0
votes
2 answers

Pyro4: Deserializing protobuf class

I am completely new to Pyro4. I wish to serve a python class which includes an attribute which is an instance of a protobuf object compiled to a python class. import sys import os import Pyro4 import MPB_pb2 as mpb # My Protobuf…
Caleb Howard
  • 45
  • 1
  • 6
0
votes
0 answers

Pyinstaller and Pyro4

I created a simple pyro server and tried packaging it with pyinstaller but whenever I try to run the executable by calling './main --s' and then in another terminal tab './main --c' the code gives me the correct output but when I look at activity…
dadrake
  • 112
  • 7