Re: [Qgis-user] configuración otb y grass

2014-01-22 Thread Rafael Torres
Muchas gracias Don,

Cambié los nombres de las carpetas para que no tengan ese carácter "ó" y parece 
que funciona ahora.
Sds
Rafael


-Mensaje original-
De: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] En nombre de Saulteau Don
Enviado el: lunes, 20 de enero de 2014 11:53 a.m.
Para: qgis-user
Asunto: Re: [Qgis-user] configuración otb y grass

I think \xf3 is the ascii code for ó as seen at http://daleswanson.org/ascii.htm

Maybe the algorithm is having trouble interpreting that character if it's in 
any of the file names or the path to those files.

Worst case, you would have to remove that from all your filenames, but maybe it 
can be fixed by adjusting the operating systems default encoding that supports 
that character?

Unless someone knows that this limitation is part of python or QGIS?

Donovan

On Mon, Jan 20, 2014 at 3:52 AM, Rafael Torres  wrote:
> Hola,
>
>
>
> When I run algorithms of otb and grass, it gives me the following error:
>
>
>
> "Traceback (most recent call last):
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py
> ",
> line 150, in execute
>
> self.processAlgorithm(progress)
>
> File 
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBAlgorithm.py"
> ,
> line 199, in processAlgorithm
>
> OTBUtils.executeOtb(commands, progress)
>
> File 
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBUtils.py",
> line 117, in executeOtb
>
> proc = subprocess.Popen(fused_command, shell=True, 
> stdout=subprocess.PIPE, 
> stdin=subprocess.PIPE,stderr=subprocess.STDOUT,
> universal_newlines=True).stdout
>
> File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 711, in 
> __init__
>
> errread, errwrite)
>
> File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 922, in 
> _execute_child
>
> args = '{} /c "{}"'.format (comspec, args)
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in 
> position
> 86: ordinal not in range(128)"
>
>
>
> Traceback (most recent call last):
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py
> ",
> line 150, in execute
>
> self.processAlgorithm(progress)
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassAlgorithm
> .py",
> line 356, in processAlgorithm
>
> self.consoleOutput = GrassUtils.executeGrass(commands, progress, 
> outputCommands);
>
> File 
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py"
> ,
> line 246, in executeGrass
>
> command = GrassUtils.prepareGrassExecution(commands)
>
> File 
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py"
> ,
> line 225, in prepareGrassExecution
>
> GrassUtils.createGrassScript(commands)
>
> File 
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py"
> ,
> line 151, in createGrassScript
>
> output.write(command + "\n")
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in 
> position
> 51: ordinal not in range(128)
>
>
>
>
>
> Thanks
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] configuración otb y grass

2014-01-20 Thread Saulteau Don
I think \xf3 is the ascii code for ó as seen at http://daleswanson.org/ascii.htm

Maybe the algorithm is having trouble interpreting that character if
it's in any of the file names or the path to those files.

Worst case, you would have to remove that from all your filenames, but
maybe it can be fixed by adjusting the operating systems default
encoding that supports that character?

Unless someone knows that this limitation is part of python or QGIS?

Donovan

On Mon, Jan 20, 2014 at 3:52 AM, Rafael Torres  wrote:
> Hola,
>
>
>
> When I run algorithms of otb and grass, it gives me the following error:
>
>
>
> “Traceback (most recent call last):
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py",
> line 150, in execute
>
> self.processAlgorithm(progress)
>
> File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBAlgorithm.py",
> line 199, in processAlgorithm
>
> OTBUtils.executeOtb(commands, progress)
>
> File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBUtils.py",
> line 117, in executeOtb
>
> proc = subprocess.Popen(fused_command, shell=True, stdout=subprocess.PIPE,
> stdin=subprocess.PIPE,stderr=subprocess.STDOUT,
> universal_newlines=True).stdout
>
> File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 711, in __init__
>
> errread, errwrite)
>
> File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 922, in
> _execute_child
>
> args = '{} /c "{}"'.format (comspec, args)
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position
> 86: ordinal not in range(128)”
>
>
>
> Traceback (most recent call last):
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py",
> line 150, in execute
>
> self.processAlgorithm(progress)
>
> File
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassAlgorithm.py",
> line 356, in processAlgorithm
>
> self.consoleOutput = GrassUtils.executeGrass(commands, progress,
> outputCommands);
>
> File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py",
> line 246, in executeGrass
>
> command = GrassUtils.prepareGrassExecution(commands)
>
> File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py",
> line 225, in prepareGrassExecution
>
> GrassUtils.createGrassScript(commands)
>
> File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py",
> line 151, in createGrassScript
>
> output.write(command + "\n")
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position
> 51: ordinal not in range(128)
>
>
>
>
>
> Thanks
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] configuración otb y grass

2014-01-20 Thread Rafael Torres
Hola,

 

When I run algorithms of otb and grass, it gives me the following error:

 

"Traceback (most recent call last):

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", 
line 150, in execute

self.processAlgorithm(progress)

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBAlgorithm.py", 
line 199, in processAlgorithm

OTBUtils.executeOtb(commands, progress)

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\otb\OTBUtils.py", line 
117, in executeOtb

proc = subprocess.Popen(fused_command, shell=True, stdout=subprocess.PIPE, 
stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True).stdout

File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 711, in __init__

errread, errwrite)

File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 922, in _execute_child

args = '{} /c "{}"'.format (comspec, args)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 
86: ordinal not in range(128)"

 

Traceback (most recent call last):

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", 
line 150, in execute

self.processAlgorithm(progress)

File 
"C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassAlgorithm.py", 
line 356, in processAlgorithm

self.consoleOutput = GrassUtils.executeGrass(commands, progress, 
outputCommands);

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py", 
line 246, in executeGrass

command = GrassUtils.prepareGrassExecution(commands)

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py", 
line 225, in prepareGrassExecution

GrassUtils.createGrassScript(commands)

File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\grass\GrassUtils.py", 
line 151, in createGrassScript

output.write(command + "\n")

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 
51: ordinal not in range(128)

 

 

Thanks

 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user