[GRASS-dev] [GRASS GIS] #3733: winGRASS 7.7svn execute command fails

GRASS GIS trac at osgeo.org
Thu Jan 17 01:44:47 PST 2019


#3733: winGRASS 7.7svn execute command fails
-------------------------+-------------------------
 Reporter:  martinl      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  Default      |    Version:  unspecified
 Keywords:               |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 Executing random command in GUI fails with

 {{{
 Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\Python37\lib\threading.py", line
 917, in _bootstrap_inner
     self.run()
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\co
 re\gconsole.py", line 163, in run
     self.resultQ.put((requestId, self.requestCmd.run()))
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\co
 re\gcmd.py", line 582, in run
     args[0] = grass.get_real_command(args[0])
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\etc\python\gras
 s\script\core.py", line 277, in get_real_command
     full_path = shutil_which(cmd + '.py')
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\etc\python\gras
 s\script\core.py", line 222, in shutil_which
     if any(cmd.lower().endswith(ext) for ext in pathext):
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\etc\python\gras
 s\script\core.py", line 222, in <genexpr>
     if any(cmd.lower().endswith(ext) for ext in pathext):
 TypeError: endswith first arg must be str or a tuple of str,
 not bytes
 }}}

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



More information about the grass-dev mailing list