On Oct 11, 2007, at 3:35 PM, Brian Miles wrote:

On Oct 8, 2007, at 1:01 PM, [EMAIL PROTECTED] wrote:

Date: Sun, 7 Oct 2007 09:38:16 -0400
From: "Michael Boldin" <[EMAIL PROTECTED]>
Subject: [Rpy] Windows import rpy problems
To: <rpy-list@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Different messages on this list point to the same basic problem- Python and RPY silently crashes when 'import rpy' is used in a Windows system. This Windows RPY problem has two quick solutions (based on my experiments):



(1) Use RPY RC2, which is the older release from December 2006. You might want to stay with Python 2.4 since the NUMERIC and NUMPY installations seem to be easier with this version. Note that only R 2.0 to 2.4.1 is
supported with RC2.  I used the build named
rpy-1.0-RC2.win32-R2.0.0-R-2.4.1-py2.4.exe
<http://downloads.sourceforge.net/rpy/rpy-1.0-RC2.win32-R2.0.0-R-2.4.1-py2.4
.exe?use_mirror=superb-east>



(2)     See the rpy-list posting by Manuzhai under  "Fixed the Win XP
problem" that has a link to a new RPY build based on RC3. This worked for
me, but it is not an official RPY package.


I downloaded and installed Manuzhai's RC3 and it does indeed fix the crashes on "import rpy". However, I'm getting a fatal error on calls to r.summary() for a linear model.

The error manifests as a pop-up dialog from python.exe:

"This application has failed to start because Rlapack.dll was not found. Re-installing the application may fix this problem"


There are more details provided on the console:

File "C:\opusworkspace-svn\opus_core \estimate_linear_regression_r.py", line 69
, in run
    summary = r.summary(fit)
rpy.RException: Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
        lapack routines cannot be loaded


This same code works under Mac OS X.

I've tried uninstalling R, restarting, reinstalling R, and restarting, but this makes no difference. I am running R 2.5.1 and Python 2.5.1 under Windows XP 32-bit.

Is there an ETA for RC4?


FYI: I solved the above error:

"This application has failed to start because Rlapack.dll was not found. Re-installing the application may fix this problem"

by adding the following to my PATH environment variable:

C:\Program Files\R\R-2.5.1\bin

However I found this out after pulling down the latest RPy from SVN, building it, and discovering that the RPy import problem is still broken in the trunk code (forgive my ignorance if it's been fixed elsewhere in the tree and I just missed it)

I made Manuzhai's fix to this code and everything seems to be happy. Are there plans for a fix for this problem (http://hg.xavamedia.nl/rpy/rev/dabea0379d84 ) to be added to the official RPy code?

I'm willing to help test any fix if need be.

Thanks,

Brian
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to