[GRASS-dev] OSGeo4W winGRASS77svn: TypeError: endswith first arg must be bytes or a tuple of bytes, not str

Helmut Kudrnovsky hellik at web.de
Sat Apr 27 04:58:15 PDT 2019


Helmut Kudrnovsky wrote
> Hi,
> 
> just tried to start the latest OSGeo4W winGRASS77svn daily build:
> 
> ----
> C:\>grass77svn
> Starting GRASS GIS...
> Traceback (most recent call last):
>   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gis_set.py", line 34,
> in
> <module>
>     from core import globalvar
>   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\globalvar.py",
> line
> 35, in 
> <module>
>     from core.debug import Debug
>   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\debug.py", line
> 77,
> in 
> <module>
>     Debug = DebugMsg()
>   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\debug.py", line
> 39,
> in __init__
>     self.SetLevel()
>   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\debug.py", line
> 45,
> in SetLevel
>     self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
>   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
> line 1074, in gisenv
>     s = read_command("g.gisenv", flags='n', env=env)
>   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
> line 494, in read_command
>     process = pipe_command(*args, **kwargs)
>   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
> line 463, in pipe_command
>     return start_command(*args, **kwargs)
>   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
> line 393, in start_command
>     return Popen(args, **popts)
>   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
> line 54, in __init__
>     cmd = shutil_which(args[0])
>   File "C:\OSGEO4~1\apps\Python37\lib\shutil.py", line 1151, in which
>     if any(cmd.lower().endswith(ext.lower()) for ext in pathext):
>   File "C:\OSGEO4~1\apps\Python37\lib\shutil.py", line 1151, in 
> <genexpr>
>     if any(cmd.lower().endswith(ext.lower()) for ext in pathext):
> TypeError: endswith first arg must be bytes or a tuple of bytes, not str
> ERROR: Error in GUI startup. See messages above (if any) and if necessary,
> please report this error to the GRASS developers.
> On systems with package manager, make sure you have the right GUI package,
> probably named grass-gui, installed.
> To run GRASS GIS in text mode use the --text flag.
> Use '--help' for further options
>      grass77 --help
> See also: https://grass.osgeo.org/grass77/manuals/helptext.html
> Exiting...
> Drücken Sie eine beliebige Taste . . .
> ----
> 
> anyone any idea?

C:\>g.version -g
version=7.7.svn
date=2019
revision=r74428M
build_date=2019-04-26
build_platform=x86_64-w64-mingw32
build_off_t_size=8



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


More information about the grass-dev mailing list