Comment 30 for bug 128180

Revision history for this message
netzberg (netzberg) wrote :

Similar problem (see below) on Hardy Heron can be resolved by installing the following packages:
http://cran.r-project.org/bin/linux/ubuntu/hardy/r-base-core_2.7.0-1hardy0_i386.deb
http://cran.r-project.org/bin/linux/ubuntu/hardy/python-rpy_1.0.3-1hardy0_i386.deb
(ignore warnings "An older version is available in a software channel")

This will create /usr/lib/python2.5/site-packages/_rpy2070.so which will be accepted by rpy import.

--------------------

The original behaviour:

$ python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy2062

      RPy module can not be imported. Please check if your rpy
      installation supports R 2.6.2. If you have multiple R versions
      installed, you may need to set RHOME before importing rpy. For
      example:

      >>> from rpy_options import set_options
      >>> set_options(RHOME='c:/progra~1/r/rw2011/')
      >>> from rpy import *