[GRASS-dev] [GRASS GIS] #1196: v.krige.py fails with ImportError: No module named vkrige

#1196: v.krige.py fails with ImportError: No module named vkrige
--------------------+-------------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: | Platform: Linux
      Cpu: x86-64 |
--------------------+-------------------------------------------------------
GRASS 6.5 r43904

{{{
GRASS 6.5.svn (personal_spearfish_60):~/soft/grass6_devel > v.krige.py
Loading packages, please wait...
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.2, released 2010/04/23
Path to GDAL shared files: /usr/share/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.5.svn
and location: personal_spearfish_60
Loading required package: foreign
Loading required package: lattice

         Note: polygon geometry computations in maptools
         depend on the package gpclib, which has a
         restricted licence. It is disabled by default;
         to enable gpclib, type gpclibPermit()

Checking rgeos availability as gpclib substitute:
FALSE
Traceback (most recent call last):
   File "/home/maris/soft/grass6_devel/dist.x86_64-unknown-linux-
gnu/scripts/v.krige.py", line 422, in <module>
     main()
   File "/home/maris/soft/grass6_devel/dist.x86_64-unknown-linux-
gnu/scripts/v.krige.py", line 312, in main
     import vkrige as GUI
ImportError: No module named vkrige
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1196&gt;
GRASS GIS <http://grass.osgeo.org>

#1196: v.krige.py fails with ImportError: No module named vkrige
---------------------+------------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: v.krige | Platform: Linux
      Cpu: x86-64 |
---------------------+------------------------------------------------------
Changes (by hamish):

  * keywords: => v.krige

Comment:

Hi,

apparently it needs to be started with:
{{{
  v.krige.py --ui
}}}

to forcibly launch the parser. probably an easy fix for that, but I'm not
sure of the exact incantation.

(also it would be good to tweak the Makefile to install the module to
$GISBASE/scripts/ ''without'' the .py extension)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1196#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1196: v.krige.py fails with ImportError: No module named vkrige
---------------------+------------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Python | Version: svn-develbranch6
Keywords: v.krige | Platform: Linux
      Cpu: x86-64 |
---------------------+------------------------------------------------------
Changes (by hamish):

  * component: Vector => Python

Comment:

Hi,

it seems to be working now in devbr6, closing bug.

That the module installs as g.module.py, g.module.py.html and
g.module.py.1 to be continued in #1768, #1555, and #2010.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1196#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1196: v.krige.py fails with ImportError: No module named vkrige
---------------------+------------------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Python | Version: svn-develbranch6
Resolution: fixed | Keywords: v.krige
  Platform: Linux | Cpu: x86-64
---------------------+------------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1196#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1196: v.krige.py fails with ImportError: No module named vkrige
---------------------+------------------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.5.0
Component: Python | Version: svn-develbranch6
Resolution: | Keywords: v.krige
  Platform: Linux | Cpu: x86-64
---------------------+------------------------------------------------------
Changes (by hamish):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

... in devbr6 it works from the command line but the GUI window still
gives a couple of tracebacks:

  * After loading a map and selecting a column, press [Plot/refresh
variogram], and:
{{{

Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu\
     /etc/wxpython/scripts/vkrige.py", line 445, in OnPlotButton
     if globals()["InputData"] is None:
KeyError: 'InputData'
}}}

the global var isn't making it out of the outer v.krige.py wrapper..?

and,

  * if you press [Run]
{{{
Traceback (most recent call last):
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu\
     /etc/wxpython/scripts/vkrige.py", line 257, in OnRunButton
     self.goutput.RunCmd(command, switchPage = True)
   File "/home/hamish/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu\
     /etc/wxpython/gui_core/goutput.py", line 587, in RunCmd
     self._notebook.SetSelectionByName('output')
AttributeError: 'FlatNotebook' object has no attribute
'SetSelectionByName'
}}}

any hints?

thanks,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1196#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1196: v.krige.py fails with ImportError: No module named vkrige
---------------------+------------------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.5.0
Component: Python | Version: svn-develbranch6
Resolution: | Keywords: v.krige
  Platform: Linux | Cpu: x86-64
---------------------+------------------------------------------------------

Comment(by aghisla):

Probably fixed in trunk #57146 , but keeping this one open until backport
to devbr6.

Greetings from Prague,
Anne

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1196#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>