Hi, I'm writing, on GNU/Linux (Debian), some code with rpy, that should work also (actually mainly) on Windows. Today I've tried to make it run on Windows, with no success.
The problem is very simple to explain: import rpy does not work; neither from a DOS shell nor from IDLE or form a script. I'm using Python 2.3.5 (but I can probably move to 2.4 if needed) and R 2.3.1. I've tried the following (sorry for not having the exact errors): 1) trying to import rpy gives an error like: couldn't obtain version number from output ... 2) the error arises when rpy tries to get RHOME, RVERSION, RVER and the like. the problem is that a) if RHOME is not set as an environment variable rpy seems unable to get it from other sources, but it gets RVERSION right; b) if it is set (like C:\Program Files\R\R-2.3.1) then rpy is unable to get RVERSION because rpy_tools.get_R_VERSIONS works with no params but fails if RHOME is given (even if the value of RHOME is correct, taken from os.environ["RHOME"] or via rpy_tools.get_R_HOME. 3) so I've tried to edit rpy_options.rpy_options, explicitly setting RVERSION and RVER [1] (to "2.3.1" and "2031") . By doing so, rpy "come up" but then fails to load _rpy2031.pyd, simply because there is no file with that name. There are some _rpy20xx, but not that one. I've tried also to copy _rpy2021 to _rpy2031 but that the poor R does not find the entry point (reanonably enough). So I'm really lost. But the problem seems to be so "fundamental" that I hope I'm just making some basic thing wrong. thanks in advance for any help, Luca ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list