Re: [GRASS-user] RES: v.centerline addon

2020-03-06 Thread Moritz Lennert
MarkusM just merged the PR so you can reinstall the extension and see if it 
works with your python 3 installation now.

Moritz

Am 6. März 2020 17:34:12 GMT+01:00 schrieb Moritz Lennert 
:
>Hi César,
>
>Micha Silver sent a pull request that should solve your issue [1], but
>I currently do not have the access necessary to merge.
>
>If one of the other developers can do it, please feel free, otherwise
>I'll do it on Monday.
>
>Moritz
>
>[1]
>https://github.com/OSGeo/grass-addons/commit/20f8becac918dbd2d81368e9a305e62fcb53efc9
>
>Am 5. März 2020 11:37:14 GMT+01:00 schrieb ce...@fototerra.com.br:
>>Hi Moritz and colleagues!!
>>
>> 
>>
>>Thank you for write and being help me. About the python version make
>>sense
>>because I’m using Python 3.7.
>>
>> 
>>
>>I’ll try install Python 2.x and run again the addon v.centerline and
>>I’ll
>>tell about the result.
>>
>> 
>>
>>Tks.
>>
>> 
>>
>>César de Paula
>>
>> 
>>
>>De: Moritz Lennert  
>>Enviada em: quinta-feira, 5 de março de 2020 05:10
>>Para: ce...@fototerra.com.br; grass-user@lists.osgeo.org
>>Assunto: Re: [GRASS-user] v.centerline addon
>>
>> 
>>
>> 
>>
>>On 4/03/20 18:10, ce...@fototerra.com.br
>>
>>wrote:
>>
>>Hello!!!
>>
>> 
>>
>>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:
>>
>> 
>>
>>“Traceback (most recent call last):
>>
>>  File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts
>>
>>/v.centerline.py", line 319, in 
>>
>>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 
>>
>>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 what’s 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
>grass-user@lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] RES: v.centerline addon

2020-03-06 Thread Moritz Lennert
Hi César,

Micha Silver sent a pull request that should solve your issue [1], but I 
currently do not have the access necessary to merge.

If one of the other developers can do it, please feel free, otherwise I'll do 
it on Monday.

Moritz

[1] 
https://github.com/OSGeo/grass-addons/commit/20f8becac918dbd2d81368e9a305e62fcb53efc9

Am 5. März 2020 11:37:14 GMT+01:00 schrieb ce...@fototerra.com.br:
>Hi Moritz and colleagues!!
>
> 
>
>Thank you for write and being help me. About the python version make
>sense
>because I’m using Python 3.7.
>
> 
>
>I’ll try install Python 2.x and run again the addon v.centerline and
>I’ll
>tell about the result.
>
> 
>
>Tks.
>
> 
>
>César de Paula
>
> 
>
>De: Moritz Lennert  
>Enviada em: quinta-feira, 5 de março de 2020 05:10
>Para: ce...@fototerra.com.br; grass-user@lists.osgeo.org
>Assunto: Re: [GRASS-user] v.centerline addon
>
> 
>
> 
>
>On 4/03/20 18:10, ce...@fototerra.com.br
>
>wrote:
>
>Hello!!!
>
> 
>
>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:
>
> 
>
>“Traceback (most recent call last):
>
>  File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts
>
>/v.centerline.py", line 319, in 
>
>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 
>
>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 what’s 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
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] RES: v.centerline addon

2020-03-05 Thread cesar
Hi Moritz and colleagues!!

 

Thank you for write and being help me. About the python version make sense
because I’m using Python 3.7.

 

I’ll try install Python 2.x and run again the addon v.centerline and I’ll
tell about the result.

 

Tks.

 

César de Paula

 

De: Moritz Lennert  
Enviada em: quinta-feira, 5 de março de 2020 05:10
Para: ce...@fototerra.com.br; grass-user@lists.osgeo.org
Assunto: Re: [GRASS-user] v.centerline addon

 

 

On 4/03/20 18:10, ce...@fototerra.com.br 
wrote:

Hello!!!

 

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:

 

“Traceback (most recent call last):

  File "C:\Users\cesar\AppData\Roaming\GRASS7\addons/scripts

/v.centerline.py", line 319, in 

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 

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 what’s 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
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user