pyro

How should I store state for a long-running process invoked from Django?

I am working on a Django application which allows a user to upload files. I need to perform some server-side processing on these files before sending them on to Amazon S3. After reading the responses to this question and this blog post I decided that the best manner in which to handle this is to have my view handler invoke a method on ...

Comparison of the multiprocessing module and pyro?

I use pyro for basic management of parallel jobs on a compute cluster. I just moved to a cluster where I will be responsible for using all the cores on each compute node. (On previous clusters, each core has been a separate node.) The python multiprocessing module seems like a good fit for this. I notice it can also be used for remo...

Network Support for Pygame

I am making a simple multiplayer economic game in pygame. It consists of turns of a certain length, at the end of which, data is sent to the central server. A few quick calculations are done on the data and the results are sent back to the players. My question is how I should implement the network support. I was looking at Twisted and at...

What are the pros and cons of PyRo and RPyC python libs ?

I am looking for a remote procedure call engine for Python and I've found that PyRo (Python Remote Object) and RPyC (Remote Python Call) are both the kind of thing I am searching for. However, I am curious to know how they compare to each other and what are their pros and cons ? ...

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__ of the class being accessed across the wire: self.screen = pygame.display.set_mode(SCREEN...

Detach a subprocess started using python multiprocessing module

Hello, I would like to create a process using the mutliprocessing module in python but ensure it continues running after the process that created the subprocess exits. I can get the required functionality using the subprocess module and Popen, but I want to run my code as a function, not as a script. The reason I want to do this is to ...

Kill Windows asynchronous Popen process in 2.4

I have a testing script that needs to open a process (a Pyro server), do some stuff that will call the opened process for information, and when it's all done will need to close the process back down. It's all part of an automated test on a staging server. In python 2.6 you can do this: pyro_server = subprocess.Popen(['python', 'pyro_s...

PyRo and python

I use PyRo in my python programm. And I have a problem. class B: In callFromProxy print 0, but in callfun print right value = 10. Why? How to fix? class A(Pyro.core.ObjBase): # set link to item class B def set(self, real_B): self.item_B = real_B # call function callfun in item_B def callfun(self): self.item_B.callfun(10) class...

Pyro, Python dns name resolution across subnets

The task is to access/connect-to Pyro objects on computer A (Pyro's name servers are broadcasting both tcp and udp packets on port 9090), from computer B which is across the internets. I made a set of tunnels connecting A & B with autossh on 7766 & 9090 (the ports Pyro uses out of the box) which didn't seem to do the trick. My next thoug...

Ever used Pyro? (Python Robotics)

I was just reading up on a robotics-oriented implementation for Python called Pyro. It stopped production in 2005, but I wonder if anyone knows if its usable in 2.6, and how it compares to other languages' robotics. ...

How to stop an IOException error using whilst using a combination of jython, pyro and ant?

So the wonderful low down on this doozie of a problem: short version: We are building a distribution system for this item of software we're using. Basically we take out build artifact, store it on an ftp server which passes it to multiple clients which execute scripts to patch their servers. Long version: 1 distribution server mult...

how to keep multiprocessing main process always exists?

I want to achieve a application, to spawn new process execute tasks, basically like below. web----->pyro----->multiprocessing Through web send command,and communicate with pyro, and then pyro spwan new process to handle the task script. What confused me is.. When I send tasks through pyro once, I send another task, is it possible? ...

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 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond $1 !^(community)(/|$) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_...

How to include javascript script links to pyrocms page?

I'm using pyrocms to develop a system. I know that, to include style links in header tag '' in a page is by using $this->template->set_metadata(). But how can I include javascript links like that? Any answer is appreciated. ...