[GRASS-user] spgrass trouble in rpy and rpy2

Markus Neteler neteler at osgeo.org
Fri Oct 8 08:03:29 EDT 2010


On Thu, Oct 7, 2010 at 9:42 PM, Ricardo Rodríguez
<ricardorodot02 at gmail.com> wrote:
> hi all, I have problems with loading package in  rpy2 in python, I get the
> following errors. would have to do so you can load these package.
>
> SPGRASS6 in Rpy2
>
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.6/dist-packages/pywps/Wps/Execute.py", line
> 560, in executeProcess
>     processError = self.process.execute()
>   File
> "/usr/local/lib/python2.6/dist-packages/pywps/processes/centralidad.py",
> line 126, in execute
>     """)
>   File "/usr/lib/python2.6/dist-packages/rpy2/robjects/__init__.py", line
> 536, in __call__
>     res = self.eval(p)
>   File "/usr/lib/python2.6/dist-packages/rpy2/robjects/__init__.py", line
> 423, in __call__
>     res = super(RFunction, self).__call__(*new_args, **new_kwargs)
> RRuntimeError: Error in library(spgrass6) : there is no package called
> 'spgrass6'
> Error in library(spgrass6) : there is no package called 'spgrass6'
>

The script closest to this is v.krige:
http://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.krige/v.krige.py

Please take a look.

Markus


More information about the grass-user mailing list