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

GRASS GIS trac at osgeo.org
Thu Jan 9 01:18:29 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
Resolution:               |   Keywords:  v.krige
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mmetz):

 Replying to [ticket:4014 neteler]:
 > 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 _
 > }}}
 >
 > Any idea how to fix that? Thanks

 Simply delete this line. This import is no longer needed, see
 https://github.com/OSGeo/grass/blob/master/lib/python/__init__.py#L8

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



More information about the grass-dev mailing list