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
0
votes
1 answer

Pyro4 kill empty nameserver

I am using Pyro4 in a distributed system. My problem is that after two networks connect there can be many nameserver. It is ok for me but if any of them is empty (has no objects registered) my network can fail . This is because I am implementing…
Gry
  • 15
  • 1
  • 8
0
votes
1 answer

Error 99 when using Pyro4 on different machiens

Part of the code I'm using is based on the messagebus example at https://github.com/irmen/Pyro4/tree/master/examples/messagebus. I've set up a Pyro4 nameserver on one machine. The server & publisher are also running on this machine. The subscriber…
rstewart
  • 5
  • 1
0
votes
1 answer

MultiThread Python Pyro4 daemon.requestLoop()

Ive been using Pyro4 to build a private chat application. Below is my code of declaring Pyro4 daemon. import Pyro4 @Pyro4.expose class GreetingMaker(object): def get_fortune(self, name): return "Hello, {0}. Here is your fortune…
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
0
votes
1 answer

AttributeError module 'Pyro4' has no attribute 'expose' while running gensim distributed LSI

So I am trying to run the demo from gensim for distributed LSI (You can find it here) Yet whenever I run the code I get the error AttributeError: module 'Pyro4' has no attribute 'expose' I have checked similar issues here on stackoverflow, and…
Abdelrahman Shoman
  • 2,882
  • 7
  • 36
  • 61
0
votes
1 answer

Python Pyro4 - Get client IP

I want the server to get the caller's IP in any way. E.g. client calls function on server that checks his IP. Also I want to know how to get my own external IP using pure Python or built-ins.
Misha
  • 117
  • 1
  • 2
  • 9
0
votes
0 answers

Creating class instances of objects

So I am trying to use class instances to create a remote database which is accessible as remote objects. But my issue is something simple, i.e. being able to store objects (with multiple attributes) as opposed to strings (which I have currently…
pow
  • 415
  • 3
  • 8
  • 18
-1
votes
2 answers

Pyro4: Remote object's attributes not changed?

I'm new to Pyro and pretty new to Python. I have the following setup: 2 python scripts Here is server.py: import os import sys import Pyro4 class Packet(object): must_shutdown = False def __init__(self): self.some_attr = "" …
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
-1
votes
1 answer

Are there any alternatves to using Pyro Event Server (subscribe) - by using Pyro4 or other packages?

I'm updating a code (originally written in python 2.7) to be compatible with both python 2.7 and python 3. The code used the package Pyro(3) which doesn't seem to be compatible with python 3, so I've tried to use Pyro4 instead. Although using Pyro4…
rstewart
  • 5
  • 1
1 2
3