[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
Wed May 1 01:20:05 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
 Keywords:  python3, py3, wingrass  |        CPU:  Unspecified
 Platform:  MSWindows               |
------------------------------------+-------------------------
 taken from [https://lists.osgeo.org/pipermail/grass-
 dev/2019-April/092079.html dev ML 1]

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

 additional info [https://lists.osgeo.org/pipermail/grass-
 dev/2019-April/092080.html dev ML 2]

 {{{
 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
 }}}

 and [https://lists.osgeo.org/pipermail/grass-dev/2019-April/092081.html
 dev ML 3]

 {{{
 Same error on Vista with same version. Locale is set to Latvia.
 }}}

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



More information about the grass-dev mailing list