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

GRASS GIS trac at osgeo.org
Thu Jan 17 03:27:21 PST 2019


#3733: winGRASS 7.7svn execute command fails
--------------------------+-------------------------------
  Reporter:  martinl      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.8.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  python3, wingrass
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------------

Comment (by hellik):

 Replying to [ticket:3733 martinl]:
 > 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
 > }}}

 Isn't it the same as already reported in an earlier Ticket?

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



More information about the grass-dev mailing list