Opened 8 years ago

Closed 8 years ago

#3256 closed defect (fixed)

v.krige fails to start due to missing core module

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 7.2.1
Component: Addons Version: svn-trunk
Keywords: v.krige Cc:
CPU: Unspecified Platform: Unspecified

Description

Since v.krige was moved to addons (see #3136), I am unable to start it. It seems that code was not changed to work as an addon.

GRASS 7.3.svn (Latvija_LKS):~/soft/grass_trunk > v.krige 
Loading dependencies, please wait...
/usr/lib64/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: rgeos version: 0.3-22, (SVN revision 544)
 GEOS runtime version: 3.5.0-CAPI-1.9.0 r4084 
 Linking to sp version: 1.2-4 
 Polygon checking: TRUE 


  res = super(Function, self).__call__(*new_args, **new_kwargs)
/usr/lib64/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: 
Attaching package: ‘XML’


  res = super(Function, self).__call__(*new_args, **new_kwargs)
/usr/lib64/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: The following object is masked from ‘package:tools’:

    toHTML


  res = super(Function, self).__call__(*new_args, **new_kwargs)
/usr/lib64/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: GRASS GIS interface loaded with GRASS version: GRASS 7.3.svn (2016)
and location: Latvija_LKS

  res = super(Function, self).__call__(*new_args, **new_kwargs)
/usr/lib64/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: Checking rgeos availability: TRUE

  res = super(Function, self).__call__(*new_args, **new_kwargs)
Traceback (most recent call last):
  File "/home/maris/.grass7/addons/scripts/v.krige", line 457, in <module>
    main()
  File "/home/maris/.grass7/addons/scripts/v.krige", line 333, in main
    from core import globalvar
ImportError: No module named core
env | grep PYTHON
GRASS_PYTHON=python
PYTHONPATH=/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python

core module is located in gui/wxpython/, still it is not in PYTHONPATH by default. Workaround till this issue is fixed: copy v.krige file from addons folder to GISBASE/gui/wxpython/

Move to addons is also "interesting", as gui/wxpython/modules still contains vkriege.py GUI file.

Change History (1)

comment:1 by marisn, 8 years ago

Resolution: fixed
Status: newclosed

In 70370:

Rename Sill to Psill as R code operates with partial sill not sill
Move Psill, Range and Nugget to float to match real life use cases
Fix Makefile to work with g.extension
Fix imports to finish transition to addons (fixes #3256)
+ cosmetics

Note: See TracTickets for help on using tickets.