On Tue, Jun 26, 2012 at 9:51 PM, Robert Chase
<re...@channing.harvard.edu> wrote:
> Hello,
>
> An old version of some software needs rpy to function. We tried using
> rpy2.classic_rpy and it didn't work. I'm getting the following error message
> when I try to install rpy.
>
>> ls
>
> ChangeLog  examples        MANIFEST.in  README         rpy.py
> rpy_version.py     src
> debian       INSTALL.UNIX     NEWS     rpy_io.py     rpy_tools.py
> rpy_wintools.py  tests
> doc       INSTALL.WINDOWS  PKG-INFO     rpy_options.py  rpy_tools.pyc
> setup.py     TODO
>
>
>> python setup.py install
>
> RHOMES= []
> DEBUG= True
> Setting RHOMES to  ['/usr/lib64/R']
> Traceback (most recent call last):
>   File "setup.py", line 109, in ?
>     RVERSION = rpy_tools.get_R_VERSION(RHOME, force_exec=True)
>   File "/tmp/rpy-1.0.3/rpy_tools.py", line 103, in get_R_VERSION
>     raise RuntimeError("Couldn't obtain version number from output\n"
> RuntimeError: Couldn't obtain version number from output
> of `R --version'.
>
>> R --version
>
> R version 2.15.0 (2012-03-30)
> ...
>
> Any help would be greatly appreciated.

That looks like the old problem of the regular expression not
expecting two digits in the minor part of the major.minor.revision
scheme. IIRC that is fixed in the repository - since you are
installing from source it should be easy to grab the latest code
(which hasn't been released as rpy 1.0.4 yet) and try that.

Peter

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to