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

Python: Pyro: OpenOPC: Connection failed

I'm trying to set up OpenOPC for Python in combination with Pyro. Whenever I try to connect to the OPC server I get this error: Pyro.errors.ProtocolError: connection failed I looked this up and it seems that Pyro is binding the server on the…
RobbeM
  • 727
  • 7
  • 16
  • 36
3
votes
3 answers

Network Support for Pygame

I am making a simple multiplayer economic game in pygame. It consists of turns of a certain length, at the end of which, data is sent to the central server. A few quick calculations are done on the data and the results are sent back to the players.…
Nikwin
  • 6,576
  • 4
  • 35
  • 43
3
votes
3 answers

Pyro4 does not allow more than two clients to access one URI

I am creating a turn based strategy game in Python using pygame. I found writing sockets incredibly difficult, so I turned to Pyro for sharing the state of the game board. However, Pyro seems unable to support more than 2 connections at a time. I am…
John
  • 173
  • 2
  • 9
3
votes
1 answer

Handle computationally-intensive requests to a Django web application, possibly using a pre-forking RPC server

I am running a Django-based webservice with Gunicorn behind nginx as a reverse proxy. My webservice provides a Django view which performs calculations using an external instance of MATLAB. Because the MATLAB startup takes some seconds on its own,…
ChrisM
  • 1,114
  • 1
  • 7
  • 18
3
votes
1 answer

How to send a function to a remote Pyro object

I am trying to set up some code using Pyro to process python code functions on a remote host and get results back. After starting the name server, i would execute this code on the remote host (actually still on localhost): import Pyro4 class…
Davide
  • 1,415
  • 2
  • 11
  • 13
2
votes
1 answer

requestloop(loopCondition) doesn't release even after loopCondition is False

I have some issues with the requestLoop methode of the Pyro4.Daemon object. What I want is to call remotely a "stop()" method for releasing the requestLoop function and shutdown my daemon. This small exemple doesn't work SERVER #!/usr/bin/python #…
ornoone
  • 651
  • 5
  • 11
2
votes
1 answer

How to create a GUI for the server side in Pyro5?

I am using Pyro5 and I want to create a GUI for the server-side. The idea is that the server can also send a message to the clients. My problem is that whenever the client accesses the method from the server code, it opens a new server GUI every…
user17128189
2
votes
0 answers

Can't run "Multivariate forecasting" in Pyro tutorial

I am trying just to run the sample program at https://pyro.ai/examples/forecast_simple.html. It runs until it reaches "RuntimeError torch.linalg.cholesky: For batch 4284: U(2,2) is zero, singular U." Every time when I run the code, it stops at the…
2
votes
1 answer

Include css and javascript in PyroCMS theme

How do i include a css and javascript from system/assets/css or js directory in my theme. we include js or css file like {pyro:theme:css file="style.css"} {pyro:theme:js file="jquery.1.5.js"} but i want to use a js file included in system/assets/js…
Mujah Maskey
  • 8,654
  • 8
  • 40
  • 61
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

Pyro4 for non-network inter-process communication

I'm currently using Pyro4 to create daemons that host services which are simply objects that can be called from other daemon-hosted objects or scripts. The objects take quite a long time to initialise and so I need to keep these objects alive rather…
Michael Anslow
  • 397
  • 3
  • 12
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
2
votes
2 answers

How to make python class "ast.literal_eval()" compatible?

I have my custom class that represents an object. I want to make that object compatible with "ast.literal_eval()" How can I do that? I can add necessary method/code to my class if necessary.
leopoodle
  • 2,110
  • 7
  • 24
  • 36
2
votes
1 answer

Checking if Pyro remote objects are reachable

I have a one Pyro server running in each of my VMs. These are all the same objects, and I'm just running them to ensure reliability. I'd like to be able to monitor whether these objects are "alive" and reachable or not. Assuming I have their URIs,…
leonsas
  • 4,718
  • 6
  • 43
  • 70
2
votes
1 answer

Pyro4 Serialize Error : unsupported serialized class

I'm new to Pyro4 and need to get into it, and what better way is there than trying out the examples contained in the Pyro4 package? So my first move was to simply make one work, it's the example "warehouse". The idea is to have a person visit the…
RickJames
  • 25
  • 1
  • 5
1
2
3
11 12