#1290: Wingrass65 - v.krige not working
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
tested with a self compiled wingrass65 at r45511
{{{
v.krige.py
Loading dependencies, please wait...
Traceback (most recent call last):
File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
mingw32/scripts/v.krige.py", line 421, in <module>
main()
File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
mingw32/scripts/v.krige.py", line 306, in main
importR()
File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
mingw32/scripts/v.krige.py", line 403, in importR
import rpy2.robjects as robjects
File "C:\OSGeo4W\apps\Python25\lib\site-
packages\rpy2\robjects\__init__.py", line 12, in <module>
import rpy2.rinterface as rinterface
File "C:\OSGeo4W\apps\Python25\lib\site-
packages\rpy2\rinterface\__init__.py", line 52, in <module>
raise RuntimeError("Unable to locate R.dll within %s" %
R_HOME)
RuntimeError: Unable to locate R.dll within C:\Program
Files\R\R-2.12.1
}}}
{{{
Unable to locate R.dll within C:\Program Files\R\R-2.12.1
}}}
R changed in one of the last versions the location of R.dll in windows to
C:\Program Files\R\R-2.12.1\bin\i386
#1290: Wingrass65 - v.krige not working
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
Comment(by aghisla):
Hello Helmut,
from version 2.12 the R executables are in a folder not scanned by rpy2,
as you pointed out.
The solution is edit RHOME system variable to point to the right folder
(i.e. full path to R executable minus /bin/R.exe).
#1290: Wingrass65 - v.krige not working
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
Comment(by aghisla):
No, I'm afraid.
rpy2 developer Laurent Gautier will work on Windows packaging only if
sponsored. I know that some users managed to compile rpy2 from source on
Windows - but have no fresh news.
I am open to consider a Python library for kriging, as replacement for R,
if its implementation is not too low-level.
#1290: Wingrass65 - v.krige not working
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
Comment(by hamish):
Replying to [comment:3 aghisla]:
> I am open to consider a Python library for kriging, as replacement for
R,
> if its implementation is not too low-level.
I always thought one of the nice things about v.kridge is its ability
to act as an example of how to write code that passes processing tools
between GRASS and R, and from that perspective I'd be sorry to see the
R dependency go away. It opens the door to *.
#1290: WinGrass: v.krige not working due to missing rpy2 pkg for MS Windows
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
#1290: WinGrass: v.krige not working due to missing rpy2 pkg for MS Windows
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: wingrass, v.krige | Platform: MSWindows Vista
Cpu: x86-32 |
-------------------------------+--------------------------------------------
Comment(by aghisla):
MarkusN suggested me to put a condition in the Makefile, like i.fft module
does, and skip v.krige compilation if dependencies are missing.
Actually the only dependency visible at compile time is python-rpy2, that
I plan to remove. In order to fix the compilation error with present
codebase, I'd appreciate suggestions on how to check this Python
dependency in the Makefile.
Would it make sense to make a new configuration parameter, like --with-R ?