I have tried ulimit -s values of up to 2000000 but even then I get C stack 
limit usage errors in R -> error initializing RPy. Only ulimit -s unlimited 
seems to work for my setup.

To clarify, I have had this problem with R-2.4.1 -> R-2.7, so I am inclined to 
think it is not 2.7-specific. The oldest version that worked without messing 
with stack usage limits in the shell was R-2.2.1.

-----Original Message-----
From: Laurent Gautier [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 8:40 AM
To: Toby Hocking
Cc: RPy help, support and design discussion list
Subject: Re: [Rpy] rpy and mod_python problem


Thanks for posting it.

I am not a C stack expert, but I suspect that there is a reason why it is not
unlimited by default. I would particularly consider putting somehow a limit
to it on a webserver, although that limit would naturally be larger than the
default one. It would be nice come up with such a number a put it in
the documentation for the time being.

>From what I read, it seems that from version 2.7 R is more C stack-hungry.
May be this will improve in time.

I have started playing with threading in python with rpy, and the C stack
problem appears. Toying with the stack limit again let things run properly.

Are there win32 folks here having similar problems with the C stack ?





2008/7/7 Toby Hocking <[EMAIL PROTECTED]>:
> Hi all,
>
> Just thought I would post with a solution I have found to my own problem.
>
> I was getting an error: C stack size is too small (I think from R) in my 
> shell, so I told my shell (bash) ulimit -s unlimited, which makes the C stack 
> size unlimited, and that fixed the problem, so I can use R-2.7 with rpy and 
> Apache2/mod_python/Django.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Toby Hocking
> Sent: Wednesday, June 25, 2008 9:29 AM
> To: RPy help, support and design discussion list
> Subject: Re: [Rpy] rpy and mod_python problem
>
>
> I'm inclined to think that it is NOT an inherent incompatibility problem with 
> mod_python and RPy since I have a working Rpy/apache/mod_python system on top 
> of Django. Relevant package versions for the working system are:
>
> Django-rev7716
> Apache-2.0.55-4ubuntu2.3
> mod_python-3.1.4-0ubuntu1.1
> R-2.2.1
> RPy-rev563
>
> But when I switch to R-2.7 and Python 2.5, I start getting the error 
> (RPy_Exception: R Function "get" not found). Furthermore, this error happens 
> on the Django development webserver as well, so it must be an error 
> independent of apache/mod_python.
>
> Any thoughts?
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Christof
> Winter
> Sent: Wednesday, June 25, 2008 7:54 AM
> To: RPy help, support and design discussion list
> Subject: Re: [Rpy] rpy and mod_python problem
>
>
> Laurent Gautier wrote, On 06/25/08 15:47:
>> Wild guess: this has something to do with the multiple interpreters
>> http://www.modpython.org/live/current/doc-html/pyapi-interps.html
>>
>> (reading the doc Python's C-level "Py_NewInterpreter()" is hinting that
>> this is likely the nature of the problem).
>>
>> For now, there is not much to do beside using python CGIs without
>> mod_python.
>> I'd like to have this solved ,but that will likely have to wait for rpy 2.1.
>
> That sounds plausible. Waiting for rpy 2.1 is fine for me, as using a 
> cgi-based
> Python with Apache works (although it's rather slow).
>
> Christof
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to