Unfortunately, no success. When I set RHOME to be
/sw/Library/Frameworks/R.framework/Versions/Current
I get this error message:

Traceback (most recent call last):
File "./rF_expression.py", line 5, in <module>
from rpy import r
File "/sw/lib/python2.7/site-packages/rpy.py", line 58, in <module>
RVERSION = rpy_tools.get_R_VERSION(RHOME)
File "/sw/lib/python2.7/site-packages/rpy_tools.py", line 99, in
get_R_VERSION
" `%s'.\n" % rexec )
RuntimeError: Couldn't execute the R interpreter
`/sw/Library/Frameworks/R.framework/Versions/Current/bin/R'.


In particular, get_R_VERSION in rpy_tools.py looks for the R interpreter
in the directory $RHOME/bin/ which of course does
not exist; R is in $RHOME.



Thanks,
Herb Wright
Contractor
Desktop Group
NCBI/NLM/NIH

wrigh...@ncbi.nlm.nih.gov







-----Original Message-----
From: Alexander Hansen <alexanderk.han...@gmail.com>
Reply-To: "fink-beginners@lists.sourceforge.net"
<fink-beginners@lists.sourceforge.net>
Date: Wed, 21 Sep 2011 20:06:31 -0400
To: Herb Wright <wrigh...@ncbi.nlm.nih.gov>
Cc: "moni...@users.sourceforge.net" <moni...@users.sourceforge.net>,
"fink-beginners@lists.sourceforge.net"
<fink-beginners@lists.sourceforge.net>
Subject: Re: [Fink-beginners] Problem with rpy-py27

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 9/21/11 5:59 PM, Wright, Herbert (NIH/NLM/NCBI) [C] wrote:
>> Im having an issue with rpy-py27 under Fink
>> 
>> Im using /sw/bin/python2.7 and it says:
>> 
>> 
>>>>> import rpy
>> Traceback (most recent call last): File "<stdin>", line 1, in
>> <module> File "/sw/lib/python2.7/site-packages/rpy.py", line 134,
>> in <module> """ % RVERSION) RuntimeError: No module named _rpy2131
>> 
>> RPy module can not be imported. Please check if your rpy
>> installation supports R 2.13.1. If you have multiple R versions
>> installed, you may need to set RHOME before importing rpy. For
>> example:
>> 
>>>>> from rpy_options import set_options
>>>>> set_options(RHOME='c:/progra~1/r/rw2011/')
>
>Ewww, Windows.
>
>
>>>>> from rpy import *
>> 
>> 
>> Below is the version info...
>> 
>> rpy-py27 Python module to access R functions
>> 
>> Installed:   1.0.3-2 Unstable:       1.0.3-2 Stable:         None Binary: 
>> 1.0.3-2
>> 
>> 
>> RPy is a very simple, yet robust, interface to the R Programming
>> Language. It can manage all kinds of R objects and can execute
>> arbitrary R functions (including the graphic functions). All the
>> errors from the R language are converted to Python exceptions.
>> 
>> Doesn't work with quartz graphics device (need a Framework build
>> of python for that).
>> 
>> Web site: http://rpy.sourceforge.net/
>> 
>> Maintainer: Monic Polynomial <moni...@users.sourceforge.net>
>> 
>> 
>> Thanks, Herb Wright Contractor Desktop Group NCBI/NLM/NIH
>> wrigh...@ncbi.nlm.nih.gov
>> 
>> 
>> 
>> 
>> 
>>> 
>> 
>> 
>
>Did you have rpy-py27 installed before updating r-base?  If so, try
>"fink rebuild rpy-p27"
>
>And does setting RHOME work?  I'm guessing that'd be to
>/sw/Library/Frameworks/R.framework/ or to one of its subdirectories.
>
>Our R package has been recently refactored, and it may be the case
>that we need to update rpy accordingly.
>- -- 
>Alexander Hansen, Ph.D.
>Fink User Liaison
>http://finkakh.wordpress.com/
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.11 (Darwin)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
>iEYEARECAAYFAk56fAYACgkQB8UpO3rKjQ/7nwCfX2EEjXD/97Y+1lyE8C3gPwtn
>jWwAn1PBeewnZZfQQno8NgO6XOzVVYu9
>=XX5e
>-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to