Opened 14 years ago
Last modified 5 years ago
#1196 reopened defect
v.krige.py fails with ImportError: No module named vkrige
| Reported by: | marisn | Owned by: | |
|---|---|---|---|
| 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 , 13 years ago
| Keywords: | v.krige added |
|---|
comment:2 by , 11 years ago
| Component: | Vector → Python |
|---|
comment:3 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 11 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
... 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 , 11 years ago
Probably fixed in trunk #57146 , but keeping this one open until backport to devbr6.
Greetings from Prague, Anne
comment:6 by , 8 years ago
| Component: | Python → Addons |
|---|
Note: v.krige was moved to addons, see #3136 for details
comment:8 by , 5 years ago
| Milestone: | → 7.8.3 |
|---|
Note:
See TracTickets
for help on using tickets.

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