Hi Moritz and colleagues!!
Thank you for write and being help me. About the python version make sense because Im using Python 3.7. Ill try install Python 2.x and run again the addon v.centerline and Ill tell about the result. Tks. César de Paula De: Moritz Lennert <[email protected]> Enviada em: quinta-feira, 5 de março de 2020 05:10 Para: [email protected]; [email protected] Assunto: Re: [GRASS-user] v.centerline addon On 4/03/20 18:10, [email protected] <mailto:[email protected]> wrote: Hello!!! Im new user on GRASS and Im trying to execute the addon v.centerline on GRASS 7.9. As input Im using a shapefile containing line (MultiLineString) as geometry and when I have run the v.centerline an erro is returning: Traceback (most recent call last): File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts /v.centerline.py", line 319, in <module> main() File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts /v.centerline.py", line 111, in main segment_input += 'P ' + category.strip() TypeError: can only concatenate str (not "bytes") to str (Wed Mar 4 17:27:25 2020) Comando terminado (3 segundos) (Wed Mar 4 17:27:25 2020) v.centerline input=Linha_rio_teste_Centerline@PERMANENT output=teste range=2 refline=2 Traceback (most recent call last): File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts /v.centerline.py", line 319, in <module> main() File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts /v.centerline.py", line 111, in main segment_input += 'P ' + category.strip() TypeError: can only concatenate str (not "bytes") to str (Wed Mar 4 17:27:28 2020) Comando terminado (2 segundos) I would like help to try understand whats happening. 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. Moritz
_______________________________________________ grass-user mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user
