Opened 12 years ago

Last modified 3 years ago

#1196 reopened defect fails with ImportError: No module named vkrige

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Addons Version: svn-develbranch6
Keywords: v.krige Cc:
CPU: x86-64 Platform: Linux


GRASS 6.5 r43904

GRASS 6.5.svn (personal_spearfish_60):~/soft/grass6_devel > 
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:
Traceback (most recent call last):
  File "/home/maris/soft/grass6_devel/dist.x86_64-unknown-linux-gnu/scripts/", line 422, in <module>
  File "/home/maris/soft/grass6_devel/dist.x86_64-unknown-linux-gnu/scripts/", line 312, in main
    import vkrige as GUI
ImportError: No module named vkrige

Change History (8)

comment:1 by hamish, 12 years ago

Keywords: v.krige added


apparently it needs to be started with: --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)


comment:2 by hamish, 9 years ago

Component: VectorPython


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

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


comment:3 by hamish, 9 years ago

Resolution: fixed
Status: newclosed

comment:4 by hamish, 9 years ago

Resolution: fixed
Status: closedreopened

... 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/", line 445, in OnPlotButton
        if globals()["InputData"] is None:
    KeyError: 'InputData'

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


  • 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/", 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/", line 587, in RunCmd
    AttributeError: 'FlatNotebook' object has no attribute 'SetSelectionByName'

any hints?

thanks, Hamish

comment:5 by aghisla, 9 years ago

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

Greetings from Prague, Anne

comment:6 by neteler, 6 years ago

Component: PythonAddons

Note: v.krige was moved to addons, see #3136 for details

comment:7 by martinl, 4 years ago

Milestone: 6.5.0

Remove Milestone from Addons bugreports.

comment:8 by neteler, 3 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.