Opened 13 years ago

Last modified 4 years ago

#1196 reopened defect

v.krige.py 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

Description

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

Change History (8)

comment:1 by hamish, 13 years ago

Keywords: v.krige added

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

comment:2 by hamish, 11 years ago

Component: VectorPython

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

comment:3 by hamish, 11 years ago

Resolution: fixed
Status: newclosed

comment:4 by hamish, 11 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/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

comment:5 by aghisla, 11 years ago

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

Greetings from Prague, Anne

comment:6 by neteler, 8 years ago

Component: PythonAddons

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

comment:7 by martinl, 5 years ago

Milestone: 6.5.0

Remove Milestone from Addons bugreports.

comment:8 by neteler, 4 years ago

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