[Rd] RSPython

From: David Scherrer <dasmailinglists_at_gmail.com>
Date: Wed, 11 Feb 2009 16:52:13 -0500

Hi all,

I try to utilize RSPython to invoke Python from R. For me it works pretty fine for basic applications, but I have 3 problems that may be related.

(1) I can't load other packages but "standard" ones also when I adjust the PythonPath:

> importPythonModule('sys', all=T)
> importPythonModule('numpy', all=T)

       Error in .PythonEval(cmd) :
       Error in Python call:

/usr/lib/python2.5/site-packages/numpy/core/multiarray.so: undefined symbol: _Py_ZeroStruct

> importPythonModule('Scientific.Functions.Derivatives', all=T)

       Error in .PythonEval(cmd) :
       Error in Python call:

/usr/lib/python2.5/site-packages/Scientific/linux2/Scientific_numerics_package_id.so: undefined symbol: PyString_InternFromString

(2) I can't even load the test example provided at www.omegahat.org/* RSPython*/ <http://www.omegahat.org/RSPython/> .



> .PythonInit()
> test <- .PythonNew("RSTest", .module="method")
       Error in .PythonNew("RSTest", .module = "method") : No such module

(3) It doesn't find RS.so if I try dyn.load("RS.so")

My OS is Linux Debian (kernel 2.6.27-11-generic) .

Many thanks for you help!


        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 11 Feb 2009 - 22:07:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Feb 2009 - 00:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive