[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
Fri May 10 10:57:20 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 pmav99):

 The traceback in the original post indicates that the problematic line is:
 {{{
     if any(cmd.lower().endswith(ext.lower()) for ext in pathext):
 }}}
 which currently has been changed to (I guess with other changes, too):
 {{{
     if any(cmd.lower().endswith(ext) for ext in pathext):
 }}}
 Could you please paste an updated traceback?

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



More information about the grass-dev mailing list