<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 4/03/20 18:10,
      <a class="moz-txt-link-abbreviated" href="mailto:cesar@fototerra.com.br">cesar@fototerra.com.br</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:000201d5f247$de6776a0$9b3663e0$@fototerra.com.br">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello!!!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I’m new user on GRASS and I’m trying to
          execute the addon v.centerline on  GRASS 7.9. As input I’m
          using a shapefile containing line (MultiLineString) as
          geometry and when I have run the v.centerline an erro is
          returning:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><b>“Traceback (most recent call last):<o:p></o:p></b></p>
        <p class="MsoNormal"><b>  File
            "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts<o:p></o:p></b></p>
        <p class="MsoNormal"><b>/v.centerline.py", line 319, in
            <module><o:p></o:p></b></p>
        <p class="MsoNormal"><b>    main()<o:p></o:p></b></p>
        <p class="MsoNormal"><b>  File
            "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts<o:p></o:p></b></p>
        <p class="MsoNormal"><b>/v.centerline.py", line 111, in main<o:p></o:p></b></p>
        <p class="MsoNormal"><b>    segment_input += 'P ' +
            category.strip()<o:p></o:p></b></p>
        <p class="MsoNormal"><b>TypeError: can only concatenate str (not
            "bytes") to str<o:p></o:p></b></p>
        <p class="MsoNormal"><b>(Wed Mar  4 17:27:25 2020) Comando
            terminado (3 segundos)                       <o:p></o:p></b></p>
        <p class="MsoNormal"><b>(Wed Mar  4 17:27:25
            2020)                                                      <o:p></o:p></b></p>
        <p class="MsoNormal"><b>v.centerline
            input=Linha_rio_teste_Centerline@PERMANENT output=teste
            range=2 refline=2<o:p></o:p></b></p>
        <p class="MsoNormal"><b>Traceback (most recent call last):<o:p></o:p></b></p>
        <p class="MsoNormal"><b>  File
            "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts<o:p></o:p></b></p>
        <p class="MsoNormal"><b>/v.centerline.py", line 319, in
            <module><o:p></o:p></b></p>
        <p class="MsoNormal"><b>    main()<o:p></o:p></b></p>
        <p class="MsoNormal"><b>  File
            "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts<o:p></o:p></b></p>
        <p class="MsoNormal"><b>/v.centerline.py", line 111, in main<o:p></o:p></b></p>
        <p class="MsoNormal"><b>    segment_input += 'P ' +
            category.strip()<o:p></o:p></b></p>
        <p class="MsoNormal"><b>TypeError: can only concatenate str (not
            "bytes") to str<o:p></o:p></b></p>
        <p class="MsoNormal"><b>(Wed Mar  4 17:27:28 2020) Comando
            terminado (2 segundos)”<o:p></o:p></b></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I would like help to try understand what’s
          happening.</p>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>I would guess that this is a Python 3 vs Python 2 issue. I never
      updated the addon to Python 3. If someone else can do this, it
      would be great, as I'm currently on mission abroad and do not
      really have the necessary access to the development tools to do
      this from here.</p>
    <p><br>
    </p>
    <p>Moritz<br>
    </p>
  </body>
</html>