ho installato il pacchetto rpy2 utilizzando il pacchetto su aur:
http://aur.archlinux.org/packages.php?ID=44479
Però quando provo ad importare la libreria ottengo:
Codice: Seleziona tutto
$ ipython
Python 2.7.1 (r271:86832, Jan 6 2011, 11:45:30)
Type "copyright", "credits" or "license" for more information.
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import rpy2.te
rpy2.tests rpy2.tests_rpy_classic
In [1]: import rpy2.tests
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/pietro/repo/python2-rpy2/<ipython console> in <module>()
/usr/lib/python2.7/site-packages/rpy2/tests.py in <module>()
2
----> 3 import rpy2.robjects.tests
4 import rpy2.rinterface.tests
5 import rpy2.rlike.tests
6
/usr/lib/python2.7/site-packages/rpy2/robjects/__init__.py in <module>()
12 import array
13 import itertools
---> 14 import rpy2.rinterface as rinterface
15 import rpy2.rlike.container as rlc
16
/usr/lib/python2.7/site-packages/rpy2/rinterface/__init__.py in <module>()
73
74
---> 75 from rpy2.rinterface.rinterface import *
76
77 class StrSexpVector(SexpVector):
ImportError: libR.so: cannot open shared object file: No such file or directory
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575913
ho provato a fare la stessa operazione suggerita:
Il file /etc/ld.so.conf.d/R-x86_64.conf sotto arch èTo work around this problem, I had to feed ldconfig with the
/usr/lib64/R/lib path by creating a file R-x86_64.conf in /etc/ld.so.conf.d
Codice: Seleziona tutto
$ cat /etc/ld.so.conf.d/rpy_x86_64.conf
/usr/lib64/R/lib
/usr/lib/R/lib
ma continua a non funzionare...
voi ruscite a capire cosa non gli piace? ho provato ad installare anche con
Codice: Seleziona tutto
pip install rpy2
e stesso errore anche provando ad installare direttamente da sorgente e specificando i percorsi:
Codice: Seleziona tutto
python2 setup.py build --r-home-lib=/usr/lib/R/lib --r-home-modules=/usr/lib/R/modules install
grazie per l'aiuto
