Hello, Well, the fix in the source seemed almost too trivial. It seems that the line of code wherein the exception was thrown uses the R environment "get" function to attempt to fetch "R.version.string". However, the authors have attempted to fetch "R_version_string", for which R complains that there is no such "variable". I changed the source (rpy.py line 307) to read
Rver = self.__getitem__('R.version.string') as I believe was the original intention. I'm guessing that the procedure in question (R.__repr__(self)) is never used and so no one has previously noticed or complained. Perhaps the re-coding of "." to "_" is some sort of artefact of previous the previous way rpy called the R "get" function? James On Monday 25 September 2006 19:02, James Stroud wrote: > Hello All, > > I just checked out rpy revision 340 from svn and tried to install it with > R2.3. When trying to reference rpy.r, I get this error: > > % python > Python 2.5 (r25:51908, Sep 20 2006, 17:36:21) > [GCC 3.4.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > py> import rpy > RHOME= /data10/users/jstroud/Programs/lib/R > RVERSION= 2.3.1 > RVER= 2031 > RUSER= /data10/users/jstroud > Loading Rpy version 2031 .. Done. > Creating the R object 'r' .. Done > py> rpy.r > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "rpy.py", line 307, in __repr__ > Rver = self.__getitem__('R_version_string') > File "rpy.py", line 290, in __getitem__ > obj = self.__dict__[name] = self.__dict__.get(name, self.get(name)) > rpy.RException: Error in get(x, envir, mode, inherits) : variable > "R_version_string" was not found > > > Is this a bug? I've noticed this problem with previous versions, but it > appears from comments in the svn that rpy-1.0-RC1 should work with R2.3.1. > This seems a trivial regex problem in the rpy source, but I wanted to get > feedback before tracking it down and fixing it in my own install. > > James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com ------------------------------------------------------------------------- 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 rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list