Comment 3 for bug 128180

Revision history for this message
sundol (hyunchul-love-me-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote : Re: [Bug 128180] Re: rpy import error at Gusty

Hi,

It will work with older version of R because gutsy and feisty have _rpy2041
or _rpy2050.
For sure, try "slocate _rpy".
I got
/usr/lib/python2.5/site-packages/_rpy2041.so
/usr/lib/python2.4/site-packages/_rpy2041.so
and you maybe get these, too.
If you get _rpy2041 or _rpy2050, R 2.4.1 or R 2.5.0 will work well,
respectively.

Best,
Hyunchul

On 10/21/07, la-figueira <email address hidden> wrote:
>
> This bug still exists in the gutsy release version. I've also tried to
> update R, but without any success. Anybody knows how to fix this?
>
> Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import rpy
> RHOME= /usr/lib/R
> RVERSION= 2.5.1
> RVER= 2051
> RUSER= /home/luisf
> Loading Rpy version 2051 ..
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.5/site-packages/rpy.py", line 112, in <module>
> exec("import _rpy%s as _rpy" % RVER)
> File "<string>", line 1, in <module>
> ImportError: No module named _rpy2051
>
> --
> rpy import error at Gusty
> https://bugs.launchpad.net/bugs/128180
> You received this bug notification because you are a direct subscriber
> of the bug.
>