[GRASS-dev] [GRASS GIS] #3837: OSGeo4W winGRASS77svn - startup error: TypeError: endswith first arg must be bytes or a tuple of bytes, not str
GRASS GIS
trac at osgeo.org
Sat May 11 02:36:09 PDT 2019
#3837: OSGeo4W winGRASS77svn - startup error: TypeError: endswith first arg must
be bytes or a tuple of bytes, not str
--------------------------+------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
CPU: Unspecified | Platform: MSWindows
--------------------------+------------------------------------
Comment (by hellik):
Replying to [comment:6 hellik]
> with r74474
>
> {{{
> C:\>g.gui wxpython
> Launching <wxpython> GUI in the background, please wait...
> Traceback (most recent call last):
> File "C:\OSGEO4~1\apps\grass\grass77/gui/wxpython/wxgui.py", line 32,
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 1075, 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 495, in read_command
> process = pipe_command(*args, **kwargs)
> File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
line 464, in pipe_command
> return start_command(*args, **kwargs)
> File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
line 394, 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
> }}}
starting the GUI
{{{
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 1075, 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 495, in read_command
process = pipe_command(*args, **kwargs)
File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
line 464, in pipe_command
return start_command(*args, **kwargs)
File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\script\core.py",
line 394, 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 . . .
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3837#comment:7>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list