Re: [Rpy] rpy2: concurrent access to R

2009-03-10 Thread Nathaniel Smith
On Tue, Mar 10, 2009 at 4:19 PM, Laurent Gautier wrote: > Since we are at it, I'd be interested in hearing how Python 2.6's > multiprocessing module behaves w/ rpy2. It's worked fine when I've used it, though I haven't done any systematic torture tests or anything... (well, inasmuch as my ordinar

Re: [Rpy] rpy2: concurrent access to R

2009-03-10 Thread Laurent Gautier
Nathaniel Smith wrote: > On Tue, Mar 10, 2009 at 11:47 AM, Ryan Kroiss wrote: (...) > > If you're getting that error message, then it sounds like your web > framework is creating multiple threads, rather than multiple > processes... switching to multiple processes should fix the problem. Since w

Re: [Rpy] rpy2: concurrent access to R

2009-03-10 Thread Nathaniel Smith
On Tue, Mar 10, 2009 at 11:47 AM, Ryan Kroiss wrote: > I'm trying to develop a web site written in python that uses rpy2.  The > site has some HTML input forms.  The data from these forms is then > passed to R using rpy2.  I've run into a problem with this though.  If I > try to run more than one

Re: [Rpy] rpy2: concurrent access to R

2009-03-10 Thread Laurent Gautier
Ryan, There is currently a likely problem with Python's GIL being released by callback functions. The exception is at least preventing nastier things from happening. This was briefly outlined some time ago: http://www.mail-archive.com/rpy-list@lists.sourceforge.net/msg01744.html Nathaniel prop

[Rpy] rpy2: concurrent access to R

2009-03-10 Thread Ryan Kroiss
Hi all, I'm trying to develop a web site written in python that uses rpy2. The site has some HTML input forms. The data from these forms is then passed to R using rpy2. I've run into a problem with this though. If I try to run more than one request at a time, I get a RRuntimeError that con