Questions tagged [pyro]

Pyro is a library that enables you to build applications in which PYthon Remote Objects can talk to each other over the network, with minimal programming effort.

Pyro is a library that 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.

176 questions
2
votes
0 answers

Python Pyro4 nameserver freezes when adding more than two remote objects

Say I want to ping something from different locations, so I wrap ping commandline tool into python and use pyro4 prc library to call it. I have a python Pyro4 nameserver import Pyro4 Pyro4.config.COMPRESSION =…
Moonwalker
  • 2,180
  • 1
  • 29
  • 48
1
vote
2 answers

Pyro4, serve object with constructor parameters. how?

I have an object that takes a parameter in the constructor. I was wondering how I can serve this from Pyro4. An Example: import Pyro4 class MyPyroThing(object): def __init__(self, theNumber): self.Number =…
DDecoene
  • 7,184
  • 7
  • 30
  • 43
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

Pyro for differential equations

Is it possible to infer differential equation parameters using pyro? I found an example with numpyro I was wondering if this is possible with pyro as well?
q than a
  • 45
  • 5
1
vote
1 answer

How to run a proper Bayesian Logistic Regression

I'm trying to run a bayesian logistic regression on the wine dataset provided from the sklearn package. As variables, I decided to use alcohol, color_intensity, flavanoids, hue and magnesium where alcohol is my response variable and the rest the…
Davide Trono
  • 99
  • 1
  • 1
  • 8
1
vote
0 answers

Solving many instances with pyomo in parallel

I'm using Pyomo library to solve an optimization problem with Gurobi optimizer. I have an academic license for Gurobi, but afaik this should not pose any kind of limitation. I'd like to optimize the model with different parameters in parallel. In…
1
vote
1 answer

Error starting Pyro Daemon using a NameServer: "could not find NameServer"

I'm trying to get a simple Pyro example running (taken from this page), this is the code: import Pyro.core import Pyro.naming class JokeGen(Pyro.core.ObjBase): def joke(self, name): return "Sorry "+name+", I don't know any…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
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

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
vote
2 answers

Python Subprocess.Popen not work for Cross platform Yocto

I am building on package using python script on yocto Pyro. In Python script i am using subprocess.Popen. As per my understanding when the Python Script runs for Cross Platform then it should take Cross-platfrom Python subprocess path however in my…
Viraj m
  • 11
  • 1
1
vote
0 answers

Error in WiX Patch creation

I have a WiX Project created in Visual Studio 2017 with a CustomDialog, a variable file, a localization file and a Product.wxs with the following structure. In the Project, I have added two dll references (WixUIExtension and WixUtilExtension). I…
Ven
  • 235
  • 4
  • 12
1
vote
1 answer

How do I add additional view (partial view) when a module public page is constructing?

Please take a look at this code // Create event output $this->template->title($event->meta_title) ->set_metadata('keywords', $event->meta_keywords) ->set_metadata('description', $event->meta_description) …
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
1
vote
2 answers

Python Pyro4 has no attribute 'naming'

I am having trouble with Pyro 4 in Windows 10. I installed Pyro4 via pip. I open cmd and type py. I type: import Pyro4. I type: Pyro4.naming. I get back AttributeError: module 'Pyro4' has no attribute 'naming'. I type: help(Pyro4). naming is listed…
Justin Giboney
  • 3,271
  • 2
  • 19
  • 18
1
vote
1 answer

Cleanup if script is terminated e.g ctrl+c like Perl's END {}

Is there something like Perl's END {}-block in python? In Perl that block will execute if the script is being terminated somehow. I found atexit but it is not working with ctrl+c I am playing around with Pyro4 and I want to put a ns.unregister() in…
Kev Inski
  • 167
  • 9