Bugs item #1827071, was opened at 2007-11-06 14:05 Message generated for change (Comment added) made by warnes You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=1827071&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: Win32 Group: None >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: import error / restart Initial Comment: After trying to import rpy in python the only thing I got is a restart and a not loaded import. In my specific case _rpy2051 (with R version 2.5.1 installed) could not be loaded. I also tried _rpy2041 (R version 2.4.1 installed) but I got the same effect. There is no error/exception message given. I am using win xp sp2 and installed the required software (python 2.4, R 2.5.1, Numeric-24.2.win32-py2.4.exe, pywin32-210.win32-py2.4.exe and rpy-1.0-RC3.win32-R2.0.0-R-2.5.1-py2.4.exe). I also have noticed that in rpy.py on line 119 the content of a try/except block is only a 'pass', which probably should be replaced by line 117 'exec("import _rpy%s as _rpy" % RVER)'. ---------------------------------------------------------------------- >Comment By: Gregory Warnes (warnes) Date: 2007-11-29 21:24 Message: Logged In: YES user_id=9316 Originator: NO This should be fixed in 1.0.1 please download and try it. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-15 11:56 Message: Logged In: NO I get the same problem with XP 2002 service pack 2, R 2.3.0, Python 2.4. I try import rpy and get: RHOME= C:\Program Files\R\R-2.3.0 RVERSION= 2.3.0 RVER= 2030 RUSER= C:\Documents and Settings\cobrien Loading the R DLL C:\Program Files\R\R-2.3.0\bin\R.dll .. Done. Loading Rpy version 2030 .. Then the shell restarts and rpy isn't loaded. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-14 12:04 Message: Logged In: NO I've found the problem (at least in ubuntu): When you (re)install python-rpy 1.0~rc1-6 it generates a _rpy2050.so in your site-packages directory in python2.5, EVEN if your installed r-based-core version is 2.5.1 (in this case the file should be named _rpy2051.so) I think that this bug is very easy to solve, but requires a new version of the .deb file. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-14 11:47 Message: Logged In: NO Got the same problem in my ubuntu gutsy 7.10 (with ipython), and I got the r-base-core version installed as well. Here is the trace: In [39]: import rpy RHOME= /usr/lib/R RVERSION= 2.5.1 RVER= 2051 RUSER= /home/msordo Loading Rpy version 2051 ..--------------------------------------------------------------------------- <type 'exceptions.ImportError'> Traceback (most recent call last) /home/msordo/PhD/<ipython console> in <module>() /usr/lib/python2.5/site-packages/rpy.py in <module>() 110 sys.stdout.flush() 111 --> 112 exec("import _rpy%s as _rpy" % RVER) 113 try: 114 pass /home/msordo/PhD/<string> in <module>() <type 'exceptions.ImportError'>: No module named _rpy2051 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-13 13:31 Message: Logged In: NO I am also experiencing the above error (running Python 2.5.1 (Activestate build), R 2.5.1, numpy 1.0.3.1). I tried changing line 119 from pass to the exec statement and this had no effect on the error. I also tried: "import _rpy2051" and this leads to a message that R.dll cannot be found (RHOME is accurate). Running the same command in a python interpreter started in R's bin directory (i.e., R.dll directory) leads to a total crash out of python (like before)and a windows error (unlike before), with no mention of R.dll not being found. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=1827071&group_id=48422 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list