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

thrift or pyro is better if I want to make a RPC service use python? is there a better choice besides them?

I will make a RPC service about suggest, server calculate the suggest data,client for request to server.This system will be written with python,What is the good choice for this?
gnemoug
  • 467
  • 1
  • 5
  • 21
1
vote
2 answers

Get caller's IP in Pyro4 application

To cut the story short: is there any way to get IP of untrusted client calling remote proxy object, using Pyro4? So person A is calling my object from IP 123.123.123.123 and person B from IP 111.111.111.111 is there any way to distinguish them in…
jb.
  • 23,300
  • 18
  • 98
  • 136
1
vote
1 answer

Pyro4 sometimes throwing "Connection reset by peer" (Erno 104) after exceeding 4 concurrent connections

I have searched and searched and can't find an answer. I am trying to open a Pyro connection between two unix devices. I can connect 4 times to the device using a Pyro4 Proxy with an identical URI string. On the fifth connection, the instance hangs…
The Lone Fellow
  • 305
  • 1
  • 2
  • 9
1
vote
1 answer

How can I use Pyro with gevent?

Is it possible to use Pyro and gevent together? How would I go about doing this? Pyro wants to have its own event loop, which underneath probably uses epoll etc. I am having trouble reconciling the two. Help would be appreciated.
Ziffusion
  • 8,779
  • 4
  • 29
  • 57
1
vote
1 answer

Using Pyro4 to get the system information

I try to using the Pyro4 on autotesting, but now I confused for some ability for Pyro4. Does there existed some method to get the system information by the Pyro4 object. In my ideas, I expose a pyro object that can get the system information, and…
cmj
  • 106
  • 1
  • 9
1
vote
2 answers

Issue with PyroCMS clean URLs

What do I need to change to get my site to present the CleanURLS ? I installed PyroCMS with Apache Mod ReWrite option, the installation was successful, however when I click on the links I get.. http://domainname.com.au/index.php/contact I want to…
IEnumerable
  • 3,610
  • 14
  • 49
  • 78
0
votes
1 answer

Best way to pass the page ID to a plugin in PyroCMS?

I've developed a module which allows the user to upload images to a little gallery widget. When they upload the pics through the admin panel then can also assign which page the image appears on. This all works fine and I have a table in database…
Phil
  • 371
  • 1
  • 4
  • 13
0
votes
0 answers

How to sample from a PyTorch/Pyro distribution with some known values? (conditional sampling)

I would like to sample from a multivariate PyTorch distribution. This is a complex learned distribution and not a standard distribution (specifically, a TransformedDistribution created with pyro). Doing this with ALL missing variable values is…
0
votes
0 answers

Lightning: can't train on GPU after loading submodule from disk

I have a LightningModule that looks something like this: class MyModule(pl.LightningModule): def __init__(self): self.module1 = Module1() self.module2 = Module2() def save(path): torch.save((self.module1,…
MadScience
  • 81
  • 2
0
votes
0 answers

Why does a multivariate pyro model infer incorrectly from data?

I am new to bayesian modelling and I've been playing around with pyro and have managed to create univariate models that correctly infer from data. However, when creating a very simple multivariate model to create a posterior that better fits my data…
fcelya
  • 1
  • 1
0
votes
0 answers

Machine learning inference distribution

“xy are two hidden variables, z is an observed variable, and z has truncation, for example, it can only be observed when z>3, z=x*y, currently I have observed 300 values of z, I should assume that I can get the distribution form of xy, but I don’t…
0
votes
0 answers

PyTorch optimizer not reading parameters from my Model class dict

I'm utilizing the pyro package (pyro = combo of Python and PyTorch, https://pyro.ai/examples/normalizing_flows_i.html) for ML on Google Colab to try to do normalizing flows. When I try to set up the optimizer (using Adam), it tells me: type object…
0
votes
1 answer

How to evaluate Gaussian Process Latent Variable Model¶

I am following a tutorial on Gaussian Process Latent Variable Model here is the link https://pyro.ai/examples/gplvm.html It is a dimension-reduction method. Now I want to evaluate the model and find the accuracy, confusion matrix is it possible to…
Mitu Vinci
  • 455
  • 9
  • 21
0
votes
0 answers

Parallel Textpreprocessing with Pyro

I am using distributed Gensim for Topic Modeling of documents. However, the preprocessing part is not distributed. Therefore I would like to implement a distributed preprocessing of the text data with Pyro (since distributed Gensim is also based on…
rolr
  • 21
  • 2
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…