[GRASS-dev] [GRASS GIS] #3691: addon r.connectivity.distance not working

GRASS GIS trac at osgeo.org
Thu Nov 1 10:36:18 PDT 2018


#3691: addon r.connectivity.distance not working
------------------------+-------------------------
  Reporter:  cgarzon    |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  Addons     |    Version:  7.4.1
Resolution:             |   Keywords:
       CPU:  OSX/Intel  |   Platform:  MacOSX
------------------------+-------------------------

Comment (by neteler):

 (minor wish: please use the "Code Block" button in the editor for citing
 terminal output for better readability)


 Replying to [ticket:3691 cgarzon]:
 > I have installed the addon r.connectivity. But when I try to use
 r.connectivity.distance I get the following error:
 >
 > GRASS 7.4.1 (nc_spm_08_grass7):~ > r.connectivity.distance
 >
 > Traceback (most recent call last):
 >
 >   File
 "/Users/carolgarzon/Library/GRASS/7.4/Modules/scripts/r.connectivity.distance",
 line 242, in <module>
 >
 >     TMP_PREFIX = grass.tempname(12)
 >
 > AttributeError: 'module' object has no attribute 'tempname'

 It seems that an import is missing to enable:

 https://grass.osgeo.org/grass76/manuals/libpython/script.html?highlight=tempname#script.core.tempname

 The author may know best...

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



More information about the grass-dev mailing list