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

Pyro4 Encoding in JSON/Base64

So I have a simple application using Pyro4 (Python Remote Objects). There is an exposed class API, and I have a file that calls the function api.parse(input,userid), which returns some JSON dependent on input. However, instead of simply returning…
James Paterson
  • 2,652
  • 3
  • 27
  • 40
0
votes
1 answer

Calling a method of Pyro4 remote object stuck for ever.

Below is the example code to test this problem that I have. The execution just stuck forever when calling testmaster.test() which is a method of the server remote object (actually not sure here it is server or client). Even @Pyro4.callback doesn't…
Khalid
  • 13
  • 3
0
votes
1 answer

Pyro communication extremely slow on the same host

I have implemented a very simple client/server application using Pyro. While the Pyro tips&tricks advises against it, I'm using the server to send images to the client (uncompressed, numpy arrays to be precise). It doesn't have to go through the…
powder
  • 1,163
  • 2
  • 16
  • 32
0
votes
1 answer

Custom user input prompt (to object constructor) does not appear / appears sporadically when called from a separate thread

Have a function of the form: def setup_my_object(): my_object = My_Object() my_object_daemon = Pyro4.core.Daemon(port=55666) Pyro4.Daemon.serveSimple({my_object: "my.object"},ns = False,daemon = my_object_daemon) Pyro4 library allows to…
0
votes
1 answer

Control a python thread from outside

I have a program, which needs to continuously run in the background, but be able to receive instructions to change. I have this thread running, which sends data to an Arduino and receives data back: class receiveTemp (threading.Thread): def…
0
votes
1 answer

How do I properly call a Python Pyro client using PHP and Apache web server?

I have a Python3 Pyro4 server client app that works great when run from command line. server.py import Pyro4 @Pyro4.expose class JokeGen(object): def __init__(self): self.jokevar = "Joke" def joke(self, name): return "Sorry…
infinigrove
  • 489
  • 1
  • 7
  • 16
0
votes
1 answer

Interact with stored python objects on server

I want to keep a python class permanently alive so I can continually interact with it. The reason for this is that this class is highly memory intensive which means that (1) I cannot fit it into memory multiple times, and (2) Loading the class is…
Louis-Philippe
  • 159
  • 2
  • 9
0
votes
1 answer

Pyro4 pickle serializer numpy array

Trying to serialize numpy array with Pyro4 is returning the following type error TypeError: don't know how to serialize class . Give it vars() or an appropriate __getstate__ The code is a the following import numpy as…
Cobry
  • 4,348
  • 8
  • 33
  • 49
0
votes
1 answer

Pyro4 cPickle serlializer

For security reasons, Pyro4 doesn't allow using pickle serializer a runtime quick fix for that can be the following. Pyro4.config.SERIALIZERS_ACCEPTED = set(['pickle','json', 'marshal', 'serpent']) is it possible to set the faster pickle…
Cobry
  • 4,348
  • 8
  • 33
  • 49
0
votes
2 answers

pyrocms installation in a subdirectory with wordpress installed in the root directory

Been at this for a while, so I figured I'd ask for help. Here's the .htaccess file for wordpress in the root: AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 # BEGIN WordPress RewriteEngine On RewriteBase…
Brian
  • 953
  • 4
  • 15
  • 35
0
votes
1 answer

Django - Script called from view with call_command connects to Pyro server script but freezes on model access

Case: I've got a Django application running, and got an interface with a list of accounts and their state. In the interface I can f.e. choose to start an account by clicking on a button. This calls a view named 'start_session' which will start a…
0
votes
1 answer

Pyro4: how to cast a list of tuples with Pyrolite in Java?

After installing Pyro4 and adding pyrolite and serpent jars to Java build path, using codes similar to the client and server side python codes which work OK with the Python client codes, I use some codes similar to the Java example on…
Tom
  • 3,168
  • 5
  • 27
  • 36
0
votes
1 answer

How to check if Pyro4 client is still alive

Situation: A Pyro4 server gives a Pyro4 client a Pyro4 proxy. I want to detect whether the client is still indeed using this proxy, so that the server can give the proxy to other clients. My idea at the moment is to have the server periodically…
Adrian Muljadi
  • 168
  • 1
  • 15
0
votes
0 answers

how to make dropdown in pyro cms

I have file "header.html" in partial folder, here my code
nisa
  • 11
  • 2
0
votes
1 answer

Pyro - Preventing NameServer from raising socket.error Address already in use

I'm trying to harden a Pyro application for production. I am running into the following issue with the Name Server. If the Name Server is turned off and rapidly turned back on, there seems to be a 50% chance that it will throw the following…
Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231