[R] problem installing RSPython

Robert Sams Robert at sanctumfi.com
Mon Jan 17 22:17:18 CET 2005


Hi,

I'm trying to install RSPython v0.5-4 on a debian machine (woody,
testing) but am having the following problem.

$R CMD INSTALL -c --library=/usr/lib/R/library RSPython_0.5-4.tar.gz 2>err

But then...
$python
>> import RS
Error in .PythonInit() : Error in Python call: values
Error in library("RSPython") : .First.lib failed for 'RSPython'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/R/library/RSPython/Python/RS.py", line 69, in ?
    library("RSPython")
  File "/usr/lib/R/library/RSPython/Python/RS.py", line 58, in library
    return(call("library", name));
  File "/usr/lib/R/library/RSPython/Python/RS.py", line 21, in call
    return RSInternal.call(name, args, other, convert, ref)
RuntimeError: error in calling R: Error in library("RSPython") : .First.lib failed for 'RSPython'

Hmm... But the installation is ok, except for these warnings:
$more err
PythonCall.c: In function `RPy_get':
PythonCall.c:305: warning: passing arg 1 of `PyImport_ImportModule' discards qualifiers from pointer target type
RCall.c: In function `RPy_callPython':
RCall.c:62: warning: passing arg 1 of `PyType_GenericNew' from incompatible pointer type


I'm running R v2.0.1, Python v2.3.4 and have the r-base-dev and
python2.3-dev packages installed. Relevant environment variable settings:
PYTHONPATH=/usr/lib/python2.3:/usr/lib/python2.3/site-packages
R_HOME=/usr/lib/R
PYTHONPATH=${PYTHONPATH}:${R_HOME}/library/RSPython/Python
PYTHONPATH=${PYTHONPATH}:${R_HOME}/library/RSPython/libs
LD_LIBRARY_PATH=${R_HOME}/lib

Any suggestions? I'm probably overlooking something obvious. Thanks.

Robert


Robert Sams

SANCTUM FI LLP
Authorised and Regulated by the FSA. 

Sending encrypted mail:

See http://pgp.mit.edu (search string 'sanctumfi') for updates.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBEHVOaIRBAC3kUplVB1o00GQXU9TkKmMWz/LiknbhLgDPBZ+1nw1ffb2FpXW
mYet2yja8Y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