I am having problems installing rpy2-2.2.2 with R 2.15.0 on Mac 10.5.8. I have tried several previous versions of RPy and R but get the same error. I am running Python 2.7.2 via the Enthought distribution and using the spyder interface.
The install via python setup.py build install appears to work fine. However, when I try to test or use rpy, through either
python -m 'rpy2.tests' (from Terminal)
from rpy2.robjects import r (from Python)
I get the following error message:
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/rpy2/robjects/init.py", line 14, in
import rpy2.rinterface as rinterface
File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/rpy2/rinterface/init.py", line 78, in
from rpy2.rinterface._rinterface import *
ImportError: dlopen(/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so, 2): Symbol not found: _R_NaInt
Referenced from: /Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so
Expected in: dynamic lookup
Any help would be appreciated.