Bugs item #1827071, was opened at 2007-11-06 11:05 Message generated for change (Comment added) made by nobody 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: Open Resolution: None 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: Nobody/Anonymous (nobody) Date: 2007-11-14 08: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 10: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 ------------------------------------------------------------------------- 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