Hello everyone,
I am trying to make Rpy2 work with my current installation of Python and R. I 
am encountering some problems. My current version of Python is the following:

> Python 2.6.4 (r264:75706, Mar  4 2010, 10:54:36) 
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2

I built R 2.10.1 using the following commands:

$ ./configure --enable-R-shlib
$ make

I installed rpy2-2.1.0beta2 after several unsuccessful trials by using these 
commands:

$ python setup.py build --r-home /home/username/R/R-2.10.1
$ python setup.py install --prefix=/home/username/src/

The following error is reported when I import rpy2:

In [1]: import rpy2.robjects.tests
Error in grep("(_US|_CA)", lcpaper) : 
  9 arguments passed to .Internal(grep) which requires 8
Error in .Internal(grepl(as.character(pattern), x, ignore.case, extended,  : 
  no internal function "grepl"
Error in .Internal(grepl(as.character(pattern), x, ignore.case, extended,  : 
  no internal function "grepl"
---------------------------------------------------------------------------
LookupError                               Traceback (most recent call last)

/home/username/<ipython console> in <module>()

/home/username/src/lib/python2.6/site-packages/rpy2/robjects/__init__.py in 
<module>()
     15 import conversion
     16 
---> 17 from rpy2.robjects.robject import RObjectMixin, RObject
     18 from rpy2.robjects.methods import RS4
     19 from rpy2.robjects.vectors import *

/home/username/src/lib/python2.6/site-packages/rpy2/robjects/robject.py in 
<module>()
      7 import conversion
      8 
----> 9 class RObjectMixin(object):
     10     """ Class to provide methods common to all RObject instances """
     11     name = None

/home/username/src/lib/python2.6/site-packages/rpy2/robjects/robject.py in 
RObjectMixin()
     20     __rclass = rpy2.rinterface.baseenv.get("class")
     21     __rclass_set = rpy2.rinterface.baseenv.get("class<-")
---> 22     __show = rpy2.rinterface.baseenv.get("show")
     23 
     24     def __str__(self):

LookupError: 'show' not found


Any help greatly appreciated !

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to