[GRASS-dev] [GRASS GIS] #4014: v.krige addon: ImportError: cannot import name '_' from 'core.utils'

GRASS GIS trac at osgeo.org
Tue Jan 7 07:22:30 PST 2020


#4014: v.krige addon: ImportError: cannot import name '_' from 'core.utils'
-------------------------+-------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  Addons       |    Version:  unspecified
 Keywords:  v.krige      |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 There is a Python 3 (?) related problem in

 https://github.com/OSGeo/grass-
 addons/blob/master/grass7/vector/v.krige/vkrige_wxgui.py#L25

 with

 {{{
 from core.utils import _
 }}}

 Error:

 {{{
 GRASS 7.8.2dev (nc_spm_08):>

 g.extention v.krige

 v.krige
 Loading dependencies, please wait...
 ...
 R[write to console]: rgdal: version: 1.4-8, (SVN revision 845)
  Geospatial Data Abstraction Library extensions to R successfully loaded
  Loaded GDAL runtime: GDAL 2.3.2, released 2018/09/21
  Path to GDAL shared files: /usr/share/gdal
  GDAL binary built with GEOS: TRUE
  Loaded PROJ.4 runtime: Rel. 5.2.0, September 15th, 2018, [PJ_VERSION:
 520]
  Path to PROJ.4 shared files: (autodetected)
  Linking to sp version: 1.3-2

 Traceback (most recent call last):
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/scripts/v.krige", line 460, in <module>
     main()
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/scripts/v.krige", line 341, in main
     import vkrige_wxgui as GUI
   File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/etc/v.krige/vkrige_wxgui.py", line 25, in <module>
     from core.utils import _
 ImportError: cannot import name '_' from 'core.utils'
 (/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-
 gnu/gui/wxpython/core/utils.py)
 }}}

 Any idea how to fix that? Thanks

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/4014>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list