Hi, I've just joined the mailing list because of the same Restart problem for RPY on Windows XP. As far as I can establish the problem is encountered at around line 117 of rpy.py -
exec("import _rpy%s as _rpy" % RVER) which in my case reads as "import _rpy2051 as _rpy" - which fails. I can't import any of the _rpy20*.pyd files, they generate the error message: Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel- import _rpy2051 as _rpy ImportError: DLL load failed: The specified module could not be found. Whereas I can import other non-rpy .pyd modules from the same directory without problem. So my guess is that the problem lies there, but I have no idea how to troubleshoot this any further. Likewise, any assistance would be appreciated. Regards, Nicki Re: [Rpy] Restart Problem with RPY Install on Windows XP From: Javier Alfaro <[EMAIL PROTECTED]> - 2007-08-29 18:22 Attachments: Message as HTML I have the same error... WHats going on here? On 8/29/07, Boldin, Michael <[EMAIL PROTECTED]> wrote: > > I have a Windows - RPY install problem that seem to be shared by others > posting to this list, but not consistently, and I can not find an answer. > > On Windows XP PCs I have gotten RPY to work, but there is a case (one > stubborn PC) where nothing seems to work. The same error repeats itself no > matter which Python and R versions I try (among Python 2.4 & 2.5 and R > 2.0 to 2.5). The basic problem is that after 'from rpy import', Python > restarts when run interactively and form a script, it aborts. > > I have installed NUMPY, SCIPY, the WIN32 extensions, plus NUMERIC and I > ran the RPY exe install for Windows in all cases (which is sequence that > word for me before). I even tried ACTIVESTATE Python 2.4 and 2.5packages. > > The same problem persists, which suggest a Windows XP issue of some kind. > I also can not rule out that NUMERIC did not install correctly. Also the > RPY install process ran surprisingly fast, compared to other install > steps, > but did not show any error message. > > Any help or suggestions are greatly appreciated. > > Here are examples > > >>> from rpy import * > > RHOME= C:\Program Files\R\R-2.2.0 > > RVERSION= 2.2.0 > > RVER= 2020 > > RUSER= C:\Documents and Settings\bmx > > Loading the R DLL C:\Program Files\R\R-2.2.0\bin\R.dll .. Done. > > Loading Rpy version 2020 .. > > >>> ================================ RESTART > ================================ > > > > >>> import rpy > > RHOME= C:\Program Files\R\R-2.2.0 > > RVERSION= 2.2.0 > > RVER= 2020 > > RUSER= C:\Documents and Settings\bmx > > Loading the R DLL C:\Program Files\R\R-2.2.0\bin\R.dll .. Done. > > Loading Rpy version 2020 .. > > >>> ================================ RESTART > ================================ > > > > So after RESTART I can not use RPY as so > > >>> r.wilcox_test > > > > Traceback (most recent call last): > > File "<pyshell#7>", line 1, in -toplevel- > > r.wilcox_test > > NameError: name 'r' is not defined > > > > >>> rpy.r.wilcox_test > > > > Traceback (most recent call last): > > File "<pyshell#8>", line 1, in -toplevel- > > rpy.r.wilcox_test > > NameError: name 'rpy' is not defined > > >>> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > rpy-list mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list