[R] problem installing RSPython

Robert Sams Robert at sanctumfi.com
Tue Jan 18 15:14:58 CET 2005


Thank you Duncan. Still no luck, though.

> There are scripts in the installed version
> of RSPython 
> that sets the value of LD_LIBRARY_PATH,
> PYTHONPATH, etc.  appropriately.
> Your LD_LIBRARY_PATH seems to be incomplete for
> RSPython and you report three different settings
> for PYTHONPATH, but of course only one of them is
> the actual value that is set when python is run.
> 
> Use the appropriate script in
> 
>  RSPython/scripts/
> 
> by source'ing them into your shell,
> e.g. 
> 
>   . RSPython/scripts/RPython.bsh

I did...
$. /usr/lib/R/library/RSPython/scripts/RPython.bsh

now i have..
LD_LIBRARY_PATH=/usr/lib/R/lib
PYTHONPATH=/usr/lib/R/library/RSPython/libs:/usr/lib/R/library/RSPython/
Python
R_HOME=/usr/lib/R

but...
$python
import RS

returns the same error. 

And in R...
$R
library(RSPython)
Initialized R-Python interface package.
Warning message: 
the Python callback manager has been registered implicitly using the
defaults (referenceManager())! 

Any other hints? I'm having trouble problem solving this one.
Thanks.
Robert

> Robert Sams wrote:
> > 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
> > mYet2yja8YIG3H2LnVla1WGVyfAyZ+QRmnUgm2hOnP7LNZIoHctnGqLmtQvOXvHz
> > xoDonFAl/ztBFE9aNPbiL4nlgdz9GS6LN6hbw9GTdYGip71QhaeVIRR3HwCgySSl
> > rUtSV8C7nbHR9C+zwku3EpMD/0yoq1R4lQgJGNbyjzzCRWRblK5cKLh1XUYG3JSc
> > ltLhoCZMvR+359FUSz+jEbbJaLRpquX48Wjv+7WW5KNVm2nPHSZrZ6tr+nm/ov1Y
> > DQxbIvBHxLXxltDWJlL/gg3bPaSIRlj/KVw0fB0NU1b25eGFRTtlHEvkAROj92sv
> > MiaSA/9jjEi2H0+yWujcBxJ6syUjWLlgRxvm85sJBihyan4ufAMFRria+QKx7ZMf
> > A7MNJ+r7ULdqCPsPdZP3kC7GNfLXBzizy3d2HSB/0oB7AjIoXrYyQvXQjFNQQX+u
> > XjeRGhALxou3H1NEPiCiHJiiaPU6Uh+KYhBCDOYZpc82FgKwWLQzUm9iZXJ0IFNh
> > bXMgKFNhbmN0dW0gRkkgTExQKSA8cm9iZXJ0QHNhbmN0dW1maS5jb20+iF0EExEC
> > AB0FAkHVOaIFCQHhM4AFCwcKAwQDFQMCAxYCAQIXgAAKCRB4Q4+orHX8Yk0hAJ9+
> > odzCRiih6wZz4NOOSVboJP+lngCeNvFGVxVQW35/qpTaF6wsym9jehi5AQ0EQdU5
> > oxAEALZEnBUQqKiF/gUqK7zyLJarsVxGsmuj0pkV5gFwCbChA4RA7QgHjknJT3Qd
> > jLUJOa+rW49WtbDCOBv+VOVp//gLROByZpizW4BYaOw01kI9emMuoc6el6nYXarJ
> > 6aZcA84IFBifdi2a8lB3ofhQuWc/YmxLjcOKbkaIC9lUYHrzAAMGA/0RRhkXCHCL
> > zRSQj+7nSBE4MTeMJycdytl1wnpWkRUa8MoUYBF6/3oiyCnO9bHbOAkQrULSWRLA
> > YsUJv0c1b6Dht5LVChGikJqKgCzWVEVUI7ob0F2LctvDxhZLlCctHapFGZn9+6pi
> > rZW+2XkBmbqhJ8ybKsRAIJNy7OV3sIHoVYhMBBgRAgAMBQJB1TmjBQkB4TOAAAoJ
> > EHhDj6isdfxizmIAn3I/mZyfAuBNZl0lG+9XpAhR80ThAKDAJEnXrH8dX30rRwDz
> > 1mgpwRYCiw==
> > =59j7
> > -----END PGP PUBLIC KEY BLOCK-----
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> -- 
> Duncan Temple Lang                duncan at wald.ucdavis.edu
> Department of Statistics          work:  (530) 752-4782
> 371 Kerr Hall                     fax:   (530) 752-7099
> One Shields Ave.
> University of California at Davis
> Davis, CA 95616, USA
> 
> 
>




More information about the R-help mailing list