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)
       NULL

       > 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/> .

       >
Sys.putenv("PYTHONPATH"='/usr/local/lib/R/site-library/RSPython/tests')
       > .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!

David

	[[alternative HTML version deleted]]

