[GRASS-dev] [GRASS GIS] #1619: v.krige won't load: ImportError: No module named globalvar

GRASS GIS trac at osgeo.org
Thu Mar 15 17:23:03 EDT 2012


#1619: v.krige won't load: ImportError: No module named globalvar
---------------------+------------------------------------------------------
 Reporter:  momsen   |       Owner:  grass-dev@…              
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  7.0.0                    
Component:  Default  |     Version:  svn-trunk                
 Keywords:  krige    |    Platform:  Linux                    
      Cpu:  x86-64   |  
---------------------+------------------------------------------------------
 Hello, I have installed GRASS 7 this week, along with
 gdal/geos/spgrass6/etc.  I'm on a Debian system.  R and many of the
 dependencies came from Debian packages.  But gdal and GRASS I installed
 from source.

 v.krige gives the following errors.  R/spgrass6 does work, I used
 readVECT6 and readRAST6 to load data into R.

 Is there something else I should install/change on my side, or is this a
 bug?

 {{{
 v.krige
 Loading dependencies, please wait...
 rgeos: (SVN revision 326)
  GEOS runtime version: 3.3.1-CAPI-1.7.1
  Polygon checking: TRUE
  WARNING! if you turn polygon checking off, and polygons are
  not valid in GEOS, you risk losing data as your R session may crash!
 Loading required package: zoo
 Attaching package: ‘zoo’
 The following object(s) are masked from ‘package:base’:
     as.Date, as.Date.numeric
 Loading required package: xts
 GRASS GIS interface loaded with GRASS version: GRASS 7.0.svn (2012)
 and location: spearfish70
 Checking rgeos availability: TRUE
 Traceback (most recent call last):
   File "/usr/local/grass-7.0.svn/scripts/v.krige", line 411,
 in <module>
     main()
   File "/usr/local/grass-7.0.svn/scripts/v.krige", line 299,
 in main
     import globalvar
 ImportError: No module named globalvar
 (Thu Mar 15 14:55:17 2012) Command finished (1 sec)
 (Thu Mar 15 15:43:42 2012)
 g.gisenv -n
 LOCATION_NAME=spearfish70
 GISDBASE=/home/emomsen/GRASSDATA
 MAPSET=user1
 GUI=wxpython
 }}}

 I tried loading the R package dependencies I knew about in R, that seemed
 to be a common theme in previous v.krige errors.  I think I have
 everything installed.

 {{{
 > sessionInfo()
 R version 2.14.1 (2011-12-22)
 Platform: x86_64-pc-linux-gnu (64-bit)

 locale:
  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
  [7] LC_PAPER=C                 LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
 [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

 attached base packages:
 [1] stats     graphics  grDevices utils     datasets  methods   base

 other attached packages:
  [1] maptools_0.8-14 lattice_0.20-0  foreign_0.8-49  automap_1.0-12
  [5] gstat_1.0-10    spacetime_0.6-0 rgeos_0.2-3     stringr_0.6
  [9] xts_0.8-2       zoo_1.7-7       spgrass6_0.7-9  XML_3.9-4
 [13] sp_0.9-97

 loaded via a namespace (and not attached):
 [1] grid_2.14.1 plyr_1.7.1
 }}}

 Other dependencies:

 {{{
 emomsen at gis-dev-test:/usr/local/grass-7.0.svn/scripts$ aptitude search
 rpy2
 i   python-rpy2                                       - Python interface
 to the GNU R language and environment (ver
 v   python2.6-rpy2                                    -
 v   python2.7-rpy2                                    -

 }}}

 Anything I should normally be reporting?  I checked the subversion number:

 {{{
 root at gis-dev-test:/opt/grass_trunk# svn info
 Path: .
 URL: https://svn.osgeo.org/grass/grass/trunk
 Repository Root: https://svn.osgeo.org/grass
 Repository UUID: 15284696-431f-4ddb-bdfa-cd5b030d7da7
 Revision: 51063
 Node Kind: directory
 Schedule: normal
 Last Changed Author: martinl
 Last Changed Rev: 51060
 Last Changed Date: 2012-03-14 17:13:32 -0500 (Wed, 14 Mar 2012)
 }}}

 Thanks for any help!

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1619>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list