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

how to use pyro to call python with object as parameter

I have setup a small test java application that calls a python script after starting a pyro server (in python). It works great except now I want to pass the python class an object as a parameter to its method. I get an exception from the python…
user1584120
  • 1,169
  • 2
  • 23
  • 44
2
votes
1 answer

Pyro4, receiving: not enough data

I'm trying to run a function on the server with Pyro4. Have a look at the code: ==========================Client====================== import Pyro4 def square(x): return x**2 remoteServer =…
2
votes
2 answers

How to start a pyro server on a remote pc?

I am looking for a possibility to do something like this: import paramiko, Pyro4 ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('machine1', username='user1') stdin,stdout,stderr =…
jrsm
  • 1,595
  • 2
  • 18
  • 39
2
votes
2 answers

Can't find Pyro Nameserver when using Pyro-nsd

I'm using Pyro4 with Python 2.7 on a Raspberry Pi running Wheezy When I start the Pyro Nameserver with either pyro4-ns & or python -m Pyro4.naming & My code works as expected without any errors. However When I start the Pyro name server daemon…
TheLukeMcCarthy
  • 2,253
  • 2
  • 25
  • 34
2
votes
1 answer

PyRO 4 - lookup fails when I try to find a registered object

I'm fighting against this problem for about a week, and I don't know anymore where to look to find a solution. As the title says, as soon as I successfully register a pyro object, I try to find it on the NS, in order to operate with it, but the…
2
votes
1 answer

Can't create virtualenv with jython 2.7b2 as an interpreter

I want to execute some Java code from Python so I've decided to install standard python interpreter, jython and join them together using pyro4. Pyro4 requires python > 2.5 so I choose to use jython 2.7b. Here are steps I made to make this…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
2
votes
2 answers

How can i add fonts in Pyrocms?

I have a static html layout with JS,CSS,Images and Fonts. Now my client wants this to be in Pyrocms. As I'm working in Pyro for the first time, I'm relying on document and can't find a place to place fonts. Like the document says I'm able to add…
yogi
  • 143
  • 1
  • 6
2
votes
1 answer

Pyro: cannot execute callbacks

Using Pyro4 I haven't managed to successfully execute a callback from server to client. The server script looks as follows: class RobotController(object): def __init__(self): self.robotStates = [] def moveDemo(self, motionTime): stopTime =…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
2
votes
1 answer

Wrapping Pyro's NameServer the correct way

I'm trying to warp Pyro's name server into a more convenient object that would allow me to start and stop it as I wish. For example, I would like to be able to do something like nameServer = NameServer("localhost") nameServer.startNS() [... make…
Christian O'Reilly
  • 1,864
  • 3
  • 18
  • 33
2
votes
0 answers

Python Pyro4, client dosent see name server which is created in server file

I try to create name server in server file by Pyro4.naming.startNS() method. My server file looks like this: my_object = MyClass() daemon = Pyro4.Daemon() uri_deamon, ns, br = Pyro4.naming.startNS() uri =…
Tomek
  • 116
  • 2
  • 11
2
votes
3 answers

Python, Pygame, Pyro: How to send a surface over a network?

I am working on a project in python using pygame and pyro. I can send data, functions, classes, and the like easily. However, I cannot send a surface across the wire without it dying on me in transit. The server makes a surface in the def __init__…
Morrowind789
  • 551
  • 3
  • 7
  • 18
2
votes
1 answer

How to display an image from the user module in PyroCMS?

I'm trying to get the image URL which is stored in the user module, using the following code: {{ user:profile user_id="3" }} {{ display_name }} {{ company }} {{ profile_picture }} {{ /user:profile }} {{ profile_picture }} is the image and all…
broadbent
  • 101
  • 9
2
votes
2 answers

Session management with sqlalchemy and pyro

I'm actually using SQLAlchemy with MySQL and Pyro to make a server program. Many clients connect to this server to make requests. The programs only provides the information from the database MySQL and sometimes make some calculations. Is it better…
nam
  • 3,542
  • 9
  • 46
  • 68
2
votes
2 answers

Pyro4 connecting python2 to python3

I have the following setup: Pyro nameserver running under python2.7, Pyro daemon running under python2.7, and (ideally) a Pyro client running python3.3. If I connect to the server using a client running under python2.7 everything works fine. When…
Mediocre Gopher
  • 2,274
  • 1
  • 22
  • 39
2
votes
1 answer

Pyro4 fails to connect between computers

I'm rather new to Python and Pyro4, and am trying to figure out how to work with them. My problem is that, given the below server and client code my two computers cannot seem to talk to each other. They are both running Ubuntu 12.04 and are on the…
Mike Blouin
  • 290
  • 4
  • 15
1 2
3
11 12