> Keep this thread on the list, please. Someone else with the same problem > in the future may find it helpful.
The last e-mail was supposed to be send to this list, but it accidentally went to Laurent private e-mail (I've attached the full context is at the bottom of this message) >What would give the shell commands: >echo $LD_LIBRARY_PATH $ echo $LD_LIBRARY_PATH /home/sebzur/lib:/lib:/home/sebzur/R_2.8.1/lib/R/lib >env | grep R $ env | grep R TERM=xterm USER=sebzur LD_LIBRARY_PATH=/home/sebzur/lib:/lib:/home/sebzur/R_2.8.1/lib/R/lib LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/sebzur/bin:/home/sebzur/java/bin:/bin:/home/sebzur/R_2.8.1/bin INPUTRC=/etc/inputrc CVS_RSH=ssh R_HOME=/home/sebzur/R_2.8.1/lib/R G_BROKEN_FILENAMES=1 >What when doing in python: >import rpy2.rinterface as ri >print(ri.R_HOME) >>> import rpy2.rinterface as ri >>> print(ri.R_HOME) /home/sebzur/R_2.8.1/lib/R Additionaly, I've compiled rpy2 (2.0.7) once again, and I see this warnings: In file included from rpy/rinterface/rinterface.c:69: /home/sebzur/R_2.8.1/lib/R/include/R_ext/Rdynload.h:26: warning: function declaration isn’t a prototype rpy/rinterface/rinterface.c:104: warning: ‘interrupt_R’ defined but not used rpy/rinterface/rinterface.c:2676: warning: ‘externalMethods’ defined but not used Can the Rdynload compiling problem be related to my issue? Sebastian Zurek wrote: > Dnia poniedziałek 05 października 2009 o 13:52:37 napisałeś: >> I can guess that you are using R-2.8.1 from the path in the error >> messate, but version numbers for Python and rpy2, and the OS you are >> using, would be nice to have. > Yes, i'm using R-2.8.1, however the R-2.9.2 results with the same problem... > > $ python --version > Python 2.5.4 > > I've tested this with two rpy2 version: 2.0.7 and 2.0.6. Both results in > error. This has to be related with some paths problems, I guess. The same > setup on my local mashine with R and rpy2 installed system-wide works perfect. > Anyway, it's strange that R on its own work without any complain... > >> This might be caused by mixing R versions. What do return the following >> shell commands: > $ which R > ~/R_2.8.1/bin/R > > $ R --version > R version 2.8.1 (2008-12-22) > Copyright (C) 2008 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under the terms of the > GNU General Public License version 2. > For more information about these matters see > http://www.gnu.org/licenses/. > > > Thanks for Your intreset in my problem Laurent! > >> which R >> >> R --version >> >> >> >> >> >> >> L. >> >> Sebastian Zurek wrote: >>> Hi! I've got the following problem and I can not find the reason: >>> >>> During the rpy2.robjects import, the dyn.load can not load the libs, the >>> error >>> >>> output is: >>>>>> import rpy2 >>>>>> import rpy2.robjects >>> Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared >>> library '/home/sebzur/R_2.8.1/lib/R/library/methods/libs/methods.so': >>> /home/sebzur/R_2.8.1/lib/R/library/methods/libs/methods.so: undefined >>> symbol: Rf_allocS4Object >>> >>> The R on its own works perfect. It's installed locally in user home dir. >>> >>> Any clues? >>> >>> Thanks in advance! >>> Sebastian >>> >>> ------------------------------------------------------------------------- >>> ----- Come build with us! The BlackBerry® Developer Conference in SF, >>> CA is the only developer event you need to attend this year. Jumpstart >>> your developing skills, take BlackBerry mobile applications to market and >>> stay ahead of the curve. Join us from November 9-12, 2009. Register >>> now! http://p.sf.net/sfu/devconf >>> _______________________________________________ >>> rpy-list mailing list >>> rpy-list@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/rpy-list > Laurent Gautier wrote: > I can guess that you are using R-2.8.1 from the path in the error > messate, but version numbers for Python and rpy2, and the OS you are > using, would be nice to have. > > This might be caused by mixing R versions. What do return the following > shell commands: > > which R > > R --version > > > > > > > L. > > > > > Sebastian Zurek wrote: >> Hi! I've got the following problem and I can not find the reason: >> >> During the rpy2.robjects import, the dyn.load can not load the libs, the >> error output is: >> >>>>> import rpy2 >>>>> import rpy2.robjects >> Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared >> library '/home/sebzur/R_2.8.1/lib/R/library/methods/libs/methods.so': >> /home/sebzur/R_2.8.1/lib/R/library/methods/libs/methods.so: undefined >> symbol: >> Rf_allocS4Object >> >> The R on its own works perfect. It's installed locally in user home dir. >> >> Any clues? >> >> Thanks in advance! >> Sebastian >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! http://p.sf.net/sfu/devconf >> _______________________________________________ >> rpy-list mailing list >> rpy-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/rpy-list > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! http://p.sf.net/sfu/devconf ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list