#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
}}}
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?