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

flask: RunTimeError: There is no current event loop in thread

I am making a simple flask app that returns results from an external website. The user enters data into my site. This data is used to load another site. Data is extracted and returned in a list. This program works independently, but will not work as…
Alex
  • 51
  • 5
3
votes
1 answer

Pyro4 and plain old data objects

I have an object which I expose with Pyro4 and which returns a POD object: import Pyro4 @Pyro4.expose class POD: def __init__(self): self.a = 1 @Pyro4.expose class Source: def get(self): p = POD() …
Tom
  • 7,269
  • 1
  • 42
  • 69
3
votes
2 answers

Releasing resources when Pyro4 client disconnects unexpectedly

I have a Pyro4 distributed system with multiple clients connecting to a single server. These clients connect to a remote object, and that object may allocate some resources in the system (virtual devices, in my case). Once a client disconnects…
Gustavo Meira
  • 2,875
  • 3
  • 21
  • 33
2
votes
0 answers

Unable to run gensims Distributed LSI

Problem description Unable to run gensims Distributed LSI due to this failed to initialize distributed LSI (Failed to locate the nameserver) Steps/code/corpus to reproduce from gensim.corpora import Dictionary from gensim.models import TfidfModel,…
Naga Budigam
  • 689
  • 1
  • 10
  • 26
2
votes
2 answers

Pyro4: Call method on remote sub-object without it trying to return the sub-object

Let's say I have an object that is a property of another object. import Pyro4 @Pyro4.expose class ClassB: def foo(self): return 'Hello from ClassB::foo()' @Pyro4.expose class ClassA: def __init__(self): self._b = ClassB() …
Caius Cosades
  • 33
  • 1
  • 9
2
votes
1 answer

Log input and output on a testing framework that uses Python, Pyro and pytest

I think it’s best if I explain what I want to do, first: I am currently developing a testing framework using Python, pytest and Pyro4. It is indented to test software running on hardware prototypes. The developer/tester is executing the test script…
aleupo
  • 23
  • 2
1
vote
0 answers

Shutdown a nameserver in Pyro4 without manual interruption

I know the current development is in Pyro5 but I am using another package (Pyomo) that is still dependent on Pyro 4. For some reason I am not being able to terminate the name server while submitting a slurm request. I have a nameserver as one…
1
vote
0 answers

How to change keys and values of a dict in pyro4?

I've recently been trying to make a little database using pyro4 to store a dict that would have the data stored in it. Here's my code: import Pyro4 @Pyro4.expose class Dict(object): def __init__(self): self._main = {} @property …
Nitlix
  • 13
  • 4
1
vote
0 answers

AssertionError while training distributed LdaModel in Gensim

I've been trying to fit a topic model using LdaModel() on a large dataset (~17 mil entries). I'm running my code on my University's HPC cluster, and have been running into issues when I try to train the model in distributed mode (distributed =…
user301060
  • 11
  • 1
1
vote
1 answer

Using Pyro4 to connect python scripts in separate containers using docker-compose

The Problem I want to use Pyro4 for remote procedure calls across multiple containers using docker-compose. Currently, I am just trying to implement a simplified version of the Pyro4 warehouse example that I have setup to run on different machines,…
mdcraver
  • 21
  • 4
1
vote
0 answers

Pyro4 python module working flow and its applications

I have deployed my Python application as a service using Pyro4 module of python. its using nameserver as localhost:9090 import subprocess subprocess.Popen('python -m Pyro4.naming',shell=True) import myapp # Pyro .. import Pyro4 I would like to have…
Yogs Surya
  • 11
  • 1
1
vote
1 answer

How to deal with custom exception using Pyro4?

I'm trying to expose my classes using Pyro4. The problem is that my class has a custom exception that Pyro4 is not able to handle it. I have tried using serialization but nothing seems to work. What I have is: # exception class class…
SLFl
  • 193
  • 1
  • 2
  • 13
1
vote
0 answers

Create A New URI for a specific class in Pyro4

I have been building a chat application wherein clients connected to the server can have a private chat using Pyro4. Clients register to the server to indicate to everyone that they are available for private chat. Clients may now invite other…
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
1
vote
1 answer

Pyro4 configuration doesn't change

I put the Pyro4 configuration as this in the starting part of my code: Pyro4.config.THREADPOOL_SIZE = 1 Pyro4.config.THREADPOOL_SIZE_MIN = 1 I check if I tried to run two client code at the same time, it will say ' rejected: no free workers,…
Kitty
  • 73
  • 1
  • 4
1
vote
1 answer

How to properly work with third-party libraries in Pyro v.4.63

I'm a bit confused with working with remote third-party libraries: 1) For example, I have server code: import Pyro4 import Pyro4.naming import Pyro4.utils.flame Pyro4.config.REQUIRE_EXPOSE = False Pyro4.config.FLAME_ENABLED =…
Igor Korolev
  • 101
  • 2
  • 10
1
2 3