Hi Christian.

The "bad news" is that:

from rpy import *
r("library(spatstat)")

and:

from rpy import *
r.library("spatstat")

both work fine for me using Windows XP, R 2.4.0 and a freshly installed 
spatstat 1.10-3 and mgcv 1.3-19, with Python 2.3 (all installed using 
pre-compiled binaries) and a self compiled slightly patched rpy 0.99.2

What are you using?

Christian wrote:
> ... If I set show_error_messages to 1 in rpy.py, I can 
> also see this message:
> 
> Loading required package: mgcv
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>        unable to load shared library 'C:/Program
> Files/R/R-2.3.1/library/mgcv/libs/mgcv.dll':
>  LoadLibrary failure:  The specified module could not be found.
> Error: package 'mgcv' could not be loaded
> 
> This dll however exists at this exact place on the disk, and I can
> load it from the R command line (with "dyn.load()")... And I can load other 
> libraries without problem other libraries using the same method as well.

The only thing I can suggest is make sure this directory is on the path 
before hand.  e.g.

import os
print os.environ["path"]

#If not there already try this:
os.environ['PATH'] += ';C:/Program 
Files/R/R-2.3.1/library/mgcv/libs/mgcv.dll'

#Then try:
import rpy
rpy.r.library("spatstat")

You might also try the Progra~1 version of the directory (without 
spaces) too.

Good luck!

Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to