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]
*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
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