On 2012-11-12 12:05, Jacob Cram wrote:
Hello All,
I am attempting to install rpy2 on a high performance cluster and am getting some strange results.
I am running R 2.14.12 (have also tried with 2.15.12).
Python is 2.7.3.
Using rpy2-2.2.1
Hi,

I'd recommend to consider switching to 2.3.0, and if not ready to do so rpy2-2.2.7 is the latest in the 2.2 series.
(more below)

I do not have root privileges.
Installing rpy2 doesn't seem to give me any unusual error messages.

Do not hesitate to share how you are installing. There might be clues about the problem.


  However
python
>>>import rpy2
>>>import rpy2.tests
File "<stdin>", line 1, in <module>
  File "/home/rcf-40/mmmm/usr/lib/
python2.7/site-packages/rpy2/tests.py", line 3, in <module>
    import rpy2.robjects.tests
File "/home/rcf-40/mmmm/usr/lib/python2.7/site-packages/rpy2/robjects/__init__.py", line 14, in <module>
    import rpy2.rinterface as rinterface
File "/home/rcf-40/mmmm/usr/lib/python2.7/site-packages/rpy2/rinterface/__init__.py", line 78, in <module>
    from rpy2.rinterface._rinterface import *
ImportError: /home/rcf-40/mmmm/usr/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so: undefined symbol: Rf_translateCharUTF8

I can't seem to find any other examples of someone experiencing this import error elsewhere. Does anybody have a suggestion about what I might be able to do to get rpy2 to work.

I think that I have seen a report about a similar problem. I suspect that the R libraries from an older R version are picked up during the initialisation.

Check in a shell if the following it pointing to the right Python libraries:

ldd `python -c 'import rpy2; print(rpy2.__path__[0])'`/rinterface/_rinterface.so | grep libR


L.

I'd be happy to provide any additional information. Thanks for your help.
-Jacob


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov


_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to