Bugs item #2940558, was opened at 2010-01-26 17:37 Message generated for change (Settings changed) made by warnes You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2940558&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: Source Group: rpy >Status: Deleted >Resolution: Duplicate Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Gregory Warnes (warnes) Summary: rpy-1.0.3 setup.py can't parse multi-digit R version numbers Initial Comment: Ubuntu linux. Python 2.6. R 2.10.1. The code to find the R version number in rpy_tools.py says this: version = re.search(" +([0-9]\.[0-9]\.[0-9])", output) Something along the lines of this will correctly find multi-digit version numbers: version = re.search(" +([0-9]+\.[0-9]+\.[0-9]+)", output) ---------------------------------------------------------------------- Comment By: Dirk Eddelbuettel (eddelbuettel) Date: 2010-01-26 19:33 Message: Correct, I think I used the same idea in the Debian builds: --- rpy-1.0.3.orig/rpy_tools.py +++ rpy-1.0.3/rpy_tools.py @@ -98,7 +98,8 @@ raise RuntimeError("Couldn't execute the R interpreter" + " `%s'.\n" % rexec ) # edd 05 Apr 2006 version = re.search("R +([0-9]\.[0-9]\.[0-9])", output) - version = re.search(" +([0-9]\.[0-9]\.[0-9])", output) + # edd 16 Oct 2009 version = re.search("R +([0-9]\.[0-9]+\.[0-9])", output) + version = re.search(" +([0-9]\.[0-9]+\.[0-9])", output) if not version: raise RuntimeError("Couldn't obtain version number from output\n" "of `R --version'.\n") ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2940558&group_id=48422 ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list