R 2.11.1 compatibility issue?
Running 32-bit intel maverick in xubuntu, with these versions of python-rpy and r-base:
ii python-rpy 1.0.3-14 Python interface to the GNU R language and environ
ii r-base 2.11.1-2 GNU R statistical computation and graphics system
In python code, "from rpy import r as R" is failing for me as follows:
Traceback (most recent call last):
File "compute_error.py", line 5, in <module>
from rpy import r as R
File "/usr/lib/
""" % RVERSION)
RuntimeError: No module named _rpy2111
RPy module can not be imported. Please check if your rpy
installation supports R 2.11.1. 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(
>>> from rpy import *
Indeed, there seems to be no such module _rpy2111 in my python-rpy package, although I do have this file:
/usr/lib/
Has python-rpy gotten out of sync with the r-base package?
(On a related note, I tried downloading rpy (1.0.3) from sourceforge to build it myself, but the file "Rdevices.h" cannot be found, even though I have the current r-base-dev (2.11.1-2). Oddly, r-base-dev does not seem to have that or any other header files, and I can't find a file of that name at packages.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu rpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérémy Subtil
- Solved:
- Last query:
- Last reply: