K-means classification crash on QGIS 2.0.1
Mantis Issue 796, reported by pyreneeslibres, assigned to jmichel, created: 2013-10-19
While I run k-means classification, I get:
Uncaught error while executing algorithm
Traceback (most recent call last):
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'\\xe9' in position 87: ordinal not in range(128)
Steps to reproduce:
- Set up QGIS 2.0.1 through OSGEO4W installer : http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe
- Load libraries as explained here : http://fromgistors.blogspot.fr/2013/09/install-semi-automatic-classification-windows.html
- Same configuration as here : http://fromgistors.blogspot.fr/2013/09/configuration-of-semi-automatic.html
- While all is configured, Run k-means classification on a dataset with default parameters.
- Error occurs with temporary and saved files for output images
Is only related to path or name of the output image?
2015-04-17 10:07 - jmichel: Do you still have the issue with new versions of OTB and Qgis?
Edited by Sébastien Dinot