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

Pyro4: calling a remote method from a remote pyro object

I am attempting to call a Pyro object method p1.get_name() from another remote Pyro object p2. The method should return the name of the p1 object, but it is returning nothing (empty string). Surprisingly, I see that p1 is accessible from p2 because…
0
votes
1 answer

How to get/config socket from Pyro Proxy

I want to set socket.TCP_KEEPIDLE of a Pyro4 object for keeping heartbeat. Is there any way to do this? Or workaround is also welcome. Thanks in advance.
Tom. W
  • 43
  • 3
0
votes
1 answer

Python: Where does import come from?

I have had this strange problem with import in python 2.7 I have my app in a directory that has some subdirectoriers and more python apps running simultaneously using Pyro Name Server for communicating with each other. When I run one of my apps, it…
rRr
  • 370
  • 1
  • 5
  • 17
0
votes
1 answer

Setting up a multi-threaded Pyro project

I have to build a simple distributed ring-structured p2p system in which a producer and consumer interact with each other for transacting. We are required to build it using threads or sockets. I have been using Pyro but I cannot figure out how to…
S_J
  • 1
  • 2
0
votes
0 answers

Pyinstaller and Pyro4

I created a simple pyro server and tried packaging it with pyinstaller but whenever I try to run the executable by calling './main --s' and then in another terminal tab './main --c' the code gives me the correct output but when I look at activity…
dadrake
  • 112
  • 7
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

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

How to enable selenium webdriver to work with Python remote objects (Pyro) in a bokeh document?

I have a python document running in bokeh server with bokeh serve view_server_so.py --show. The webpage is immediately opened in a browser tab. For testing purposes I am using Pyro to allow remote access to some of the objects / methods running in…
mdk
  • 398
  • 2
  • 8
0
votes
2 answers

Transfer files with Python 2.7/Pyro4 UnicodeEncodeError

So I'm trying to learn Pyro by creating a simple file server with it. I've implemented a few basic features, and now I'm trying to add file transfer. I've looked at examples of how to do this…
0
votes
1 answer

Non-lazy instance creation with Pyro4 and instance_mode='single'

My aim is to provide to a web framework access to a Pyro daemon that has time-consuming tasks at the first loading. So far, I have managed to keep in memory (outside of the web app) a single instance of a class that takes care of the time-consuming…
mimo
  • 2,469
  • 2
  • 28
  • 49
0
votes
1 answer

Pyro requests goes to the wrong nameserver (when there are multiple ones)

I have the following case: Two servers running each their own name server (NS) Each of these servers has the same object registering with a different URI. The URI includes the local server's hostname to make it unique A third server, the client,…
Djurdjura H.
  • 99
  • 2
  • 9
0
votes
0 answers

erroe while compiling my own recipe in yocto (pyro)

I am using pyro + ubuntu 16.04. I have inherit externalsrc bb class and used EXTERALSRC for source directory. I am getting an error while compiling my application. ERROR: "No rule to make target all" it is going to search Makefile on build…
0
votes
1 answer

why u-boot source code remove while compiling?

I am perorming following steps for compiling source code locally. i am using poky version pyro of yocto. but after successfully clean the source code, while compiling source code is remove and error is display. step 1 bitbake -v -c clean…
0
votes
2 answers

How do I create the widget automatically on PyroCMS?

I'd like to develop a module as an event with registration form. An event is actually a page module with slight modification by adding some fields such registration form url. When the controller return a view, I'd like the controller to return a…
0
votes
1 answer

Importing Pyro in IronPython ScriptEngine

So I am having some troubles importing Pyro or Pyro4 while using IronPython as a C# ScriptEngine. The import works fine if run directly in the ipy interpreter, but I receive the following error when ipy is initialized as a script engine from a c#…
FuzzkingCool
  • 309
  • 4
  • 14