Bugs item #1629506, was opened at 2007-01-06 10:23
Message generated for change (Comment added) made by bbarnard
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=1629506&group_id=48422
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: rpy
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bill Barnard (bbarnard)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py fails with R 2.4.1
Initial Comment:
Running setup.py yields the following error:
[EMAIL PROTECTED] rpy-0.99.2 $ python setup.py build
RHOMES= []
Setting RHOMES to ['/usr/lib/R']
Traceback (most recent call last):
File "setup.py", line 80, in ?
RVERSION = rpy_tools.get_R_VERSION(RHOME, force_exec=True)
File "/home/billb/rpm/BUILD/rpy-0.99.2/rpy_tools.py", line 102, 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'.
This appears to be because the output of R --version has changed. It now
outputs a string:
R version 2.4.1 (2006-12-18)
The fix is a minor change in rpy_tools.py in the get_R_VERSION() function (Line
100)
Change:
version = re.search("R +([0-9]\.[0-9]\.[0-9])", output)
to:
version = re.search("R +\D*([0-9]\.[0-9]\.[0-9])", output)
You could use any other regexp besides \D* to match the string "version " which
appears to be the new output portion.
I have attached a patch with the proposed change.
----------------------------------------------------------------------
>Comment By: Bill Barnard (bbarnard)
Date: 2007-01-06 10:40
Message:
Logged In: YES
user_id=1057791
Originator: YES
My apologies if this bug record is redundant. I checked the bugs lists but
not the mailing lists so I did not realize there was a version 1.0 RCx
available.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=1629506&group_id=48422
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list