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

Pyro - How to use HMac key with Name Server? CommunicationError: hmac key config not symmetric

I'm using Pyro 4.34, Python 2.7 and Jython 2.7. NameServer. I can start the name server like this fine: pyro4-ns --key abc Pyro Server. The documentation states that I can set the _pyroHmacKey attribute on the Pyro daemon, but the locateNS method…
Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231
0
votes
1 answer

Pyro4, object changes class (the State patern) but Proxy does not see it

In an application I use a low level library and run it in a separate process. The connection to the process is done with Pyro4. The library needs initialization before the work and release of resources after. Thus, I implement the State pattern to…
xealits
  • 4,224
  • 4
  • 27
  • 36
0
votes
2 answers

make pyro4 proxy indexable

I am trying make a pyro4 proxy indexable. To test this, I took the greeting example from http://pythonhosted.org/Pyro4/intro.html#simple-example and I modified it: Server: import Pyro4 class Test(object): def __getitem__(self, index): …
andi
  • 912
  • 1
  • 10
  • 25
0
votes
1 answer

Pyro4 client not receiving message

I have issues getting back a simple numpy array from a Pyro4 server (version 4.39, serializer= pickle) when its size exceeds a certain threshold. The server process the request and replies back but the client stays hanging Code is below: Server…
C.Rokos
  • 1
  • 1
0
votes
1 answer

Pyro4 Tutorial, Error on different machines: not enough data

I started to use Pyro4 from yesterday, so I'm experimenting the tutorial code from the official document. Everything ran perfectly locally, but I encountered problems when I adapt these examples in different machines, specifically, the stockmarket…
James Guo
  • 53
  • 2
  • 9
0
votes
2 answers

How do I prevent Pyro4 from closing the connection after COMMTIMEOUT

I have the following situation; My Pyro4 project has a server and a client. The server contains a method which need to call 2 callbacks on the same callback object. So class Callback has two callback methods: Callback() and SecondCallback(). There…
Arnold Pistorius
  • 522
  • 4
  • 18
0
votes
1 answer

I keep getting a not connected error when I try to do the Pyro4.proxy(uri) call

I'm having a problem with Pyro4 where when I try to connect to my python server it never connects. However as far as I can tell the server is running fine. I always get the 'not connected' problem. and when its not connected, I cannot make any…
Div
  • 130
  • 1
  • 14
0
votes
2 answers

Pyro ns=True not working

I'm totally new to RPC and Pyro and trying to understand the consept of it.I'm doing the example of website of it and my code isn't working when I do ns=True despite it's working when ns=False.I'am getting this error: Pyro4.errors.NamingError:…
user1801517
0
votes
1 answer

Pyro4 does not throw ConnectionClosedError

I'm running pyro 4.31. I need to be able to catch an exception when the proxy object loses connection to the remote object (i.e. when the server abruptly shuts down). So I have code like this: for ... proxy = Pyro4.async(Pyro4.Proxy(pyro_uri)) …
ddvlamin
  • 181
  • 1
  • 1
  • 14
0
votes
1 answer

Pyro & WSGI Raspberry Pi

I am currently working on a web application that can control a robot I am working on. For some reason I cannot get Pyro to work correctly. It appears everything is working (no errors) but the methods in the "server" are never called when I click a…
QuantumPhysGuy
  • 416
  • 5
  • 18
0
votes
2 answers

Serialize python objects along with class definition

I'm trying to understand how to make RPC calls using Python. I have a stupid server that defines a class and exposes a method that create instances of that class: # server.py class Greeter(object): def __init__(self, name): self.name =…
Alessio
  • 341
  • 2
  • 5
  • 7
0
votes
1 answer

Pyro.Naming.NameServerStarter documentation

I'd like to use Pyro.Naming.NameServerStarter.start() but I can't find any documentation, and it is better than 'pyro-ns'. I also don't know why y can't retrieve Pyro4 module since I've just updated Pyro modules. Only Pyro module is reacheable, so I…
FrancescoN
  • 2,146
  • 12
  • 34
  • 45
0
votes
1 answer

Pyro: Is it possible to pass a class from a server to a client and then instantiate an instance of that class on the client side?

High level overview: I have a server.py file and a class WorkTask.py that has some function execute in it, both stored on my server. I also have a client.py that runs remotely and connects to the server using pyro. Is there anyway that I can pass…
Dylan
  • 949
  • 3
  • 13
  • 23
0
votes
1 answer

Pyro.errors.ProtocolError: connection failed

I'm using OpenOPC library to connect to OPC servers. I can successfully write and read from my local Matrikon OPC server but when I try and read from another machine (different host) then I get the error Pyro.errors.ProtocolError: connection failed…
Mark Corrigan
  • 544
  • 2
  • 11
  • 29
0
votes
0 answers

PYROCMS call plugin from controller?

this is my plugin function. class Plugin_name extends Plugin function test(){ return '1'; } } i want to use this function in Controller file. how can i call plugin function in Controller. thank you.
Renish Khunt
  • 5,620
  • 18
  • 55
  • 92