[R] Running rpy produces the error message undefined symbol: KillAllDevices

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Mar 25 00:32:31 CET 2008


Bob and Deb wrote:
> Hello All,
>
> I've been using R for a while and decided to test R from the svn trunk.  I
> know that trunk is not stable, but I wanted to see if I can install and run
> the latest rpy on my Ubuntu 7.10 box.  It installed ok, but I got the
> runtime error message:
>
> $ python
> Python 2.5.1 (r251:54863, Mar  7 2008, 04:10:12)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>   
>>>> import rpy
>>>>         
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.5/site-packages/rpy.py", line 134, in <module>
>     """ % RVERSION)
> RuntimeError: /usr/lib/python2.5/site-packages/_rpy2070.so: undefined
> symbol: KillAllDevices
>
>       RPy module can not be imported. Please check if your rpy
>       installation supports R 2.7.0. 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(RHOME='c:/progra~1/r/rw2011/')
>       >>> from rpy import *
>
>   
I think this is self-inflicted. You are expecting Rpy to support R 
version 2.7.0 before it is released.

I'm not familiar with  Rpy, but at the very least I'd expect that you 
need to reinstall the package with R 2.7.0 to obtain _rpy2070.so.

(What is a Windows path to the install directory of a long obsolete R 
version doing output on Ubuntu, BTW?)
> Btw, RHOME on my computer is located at /usr/local/lib/R and I have compiled
> R shared library directory in my ld.so.conf.
>
> Bob
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list