I had compiled R as shlib .

Here is also something very strange;  when I run python with the tests for 
rpy2, it says that it has been compiled against R-3.0.2.

 python -m "rpy2.tests"rpy2 version: 2.3.8
built against R version: 3-0.2--63987

But here are the bad results:
Python 2.7.5 (default, Sep 11 2013, 02:14:06)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2
>>> from rpy2 import robjects
>>> robjects.r("version")
<ListVector - Python:0x1dcf10e0 / R:0x1c850800>
[StrVe..., StrVe..., StrVe..., ..., StrVe..., StrVe..., StrVe...]
  platform: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dce5ea8 / R:0x1c850cd8>
['x86_64-redhat-linux-gnu']
  arch: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dcf1368 / R:0x1c850ca8>
['x86_64']
  os: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dcf1098 / R:0x1c850c78>
['linux-gnu']
  ...
  platform: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dcf1488 / R:0x1c853a18>
['R']
  arch: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dcf1560 / R:0x1c8539e8>
['R version 2.15.2 (2012-10-26)']
  os: <class 'rpy2.robjects.vectors.StrVector'>
  <StrVector - Python:0x1dcf1638 / R:0x1c8539b8>
['Trick or Treat']
>>>

The last one is the killer.

Thanks,
Erin


________________________________
From: Laurent Gautier [lgaut...@gmail.com]
Sent: Sunday, November 17, 2013 9:43 PM
To: rpy-list@lists.sourceforge.net
Subject: Re: [Rpy] (no subject)

On 11/17/2013 10:10 PM, Hodgess, Erin wrote:
This is on a server.  The python that I use is 2.7.5, but the system is 2.4

Python 2.7 will be fine with the latest rpy2 (2.3.8). No hope for Python 2.4.


I tried to install from a tarball but when I run the python program, I get the 
message that the packages were compiled in R-3.0.2 and it's using R-2.15.2.

Are there particular flags that I should be setting, do you know, please?

Hard to tell without knowing where you obtained the tarball, and whether R 
itself is properly installed (the message about versions makes one wonder).

Note that the documentation suggests how to install rpy2: 
http://rpy.sourceforge.net/rpy2/doc-2.3/html/overview.html#installation

L.

Thanks,
Erin

________________________________
From: Thomas Kluyver [tak...@gmail.com<mailto:tak...@gmail.com>]
Sent: Sunday, November 17, 2013 9:06 PM
To: RPy help, support and design discussion list
Subject: Re: [Rpy] (no subject)

On 17 November 2013 17:18, Hodgess, Erin 
<hodge...@uhd.edu<mailto:hodge...@uhd.edu>> wrote:
I'm trying to install Rpy2 on a Centos 5 system.  Actually, I had it installed, 
but want to upgrade it to match R-3.0.2.  So this is what I have:
...
    Traceback (most recent call last):
      File "<string>", line 14, in ?
      File "/usr/build/rpy2/setup.py", line 13
        default_lib_directory = 'bin' if sys.platform=='win32' else 'lib'
                                       ^
    SyntaxError: invalid syntax

What version of Python is that running with? I think the conditional expression 
syntax was new with Python 2.5. If you need to use Python 2.4, you'll have to 
go back to an older version of rpy2. But that in turn may not support the 
newest version of R.

Thomas



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk



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


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to