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 proposed a patch... but it has been pretty busy on other 
things since then.

You could either disallow simultaneous requests, or hack a cheap locking 
mechanism of your own in the meanwhile (or catch exceptions).


L.



Ryan Kroiss wrote:
> 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 
> concurrent access to R is not allowed.  Does anyone know a way to work 
> around this?  Can more than one instance of R be created?  Is there a 
> way to somehow synchronize the access to R?  Creating threads in the 
> python code wouldn't really work because separate requests would be 
> creating separate processes.  Any help/suggestions would be appreciated.
> 
> Thank you,
> Ryan
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to