[Qgis-user] Qgis 3.16 in mac error with translate raster file
Jorge Gustavo Rocha
jgr at geomaster.pt
Tue Dec 14 12:52:33 PST 2021
Ciao Azzurra,
It is just a guess, but try to use just asccii file names (for input and
outpus). Maybe your student's name has accented characters that are not
supported by Grass7Utils.py.
Good luck,
Jorge
On 14/12/21 17:48, Azzurra Lentini wrote:
>
> Hi to all,
> a student of mine has having this issues during a raster
> processing operation (translate).
> She is using a Qgis 3.16 in mac and she does not have problems
> with other raster file operations like slope, shade etc, but when
> she wants to transform a raster file data type floats to raster
> file pixel data type Integer, using the command translate, she
> gets this error message: do you know what is? I am sure she does
> not have any symbols or empty spaces in the paths of her files.
>
> Thanks, Azzurra
>
> 2021-12-13T18:31:58 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
> 2021-12-13T18:38:09 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
> 2021-12-13T18:40:48 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
> 2021-12-13T18:41:29 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
> 2021-12-13T18:42:33 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
> 2021-12-13T18:48:47 CRITICAL Traceback (most recent call
> last): File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 423, in processAlgorithm getattr(self,
> fullName)(parameters, context, feedback) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 480, in processInputs self.loadRasterLayerFromParameter(
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 731, in loadRasterLayerFromParameter
> self.loadRasterLayer(name, layer, external, band)
> File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 746, in loadRasterLayer
> self.setSessionProjectionFromLayer(layer) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1044, in setSessionProjectionFromLayer
> self.setSessionProjection(layer.crs()) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
> line 1051, in setSessionProjection file_name =
> Grass7Utils.exportCrsWktToFile(crs) File
> "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins/processing/algs/grass7/Grass7Utils.py",
> line 95, in exportCrsWktToFile f.write(wkt)
> UnicodeEncodeError: 'ascii' codec can't encode character
> '\xb0' in position 895: ordinal not in range(128)
>
>
>
> --
> Gis Expert for Environmental Science
> Environmental Disasters, Hydrogeology, Climate
> image.png
> *Eur**opean **Commission*
> *Joint Research Centre**
> *
> Adjunct Professor University "Roma Tre" *
> *
> AZZURRA LENTINI
> ++++++++++++++++++++++++++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++++++++++++++++++++++++++
> SKYPE azzurrahydro
> ++++++++++++++++++++++++++
>
> *_azzurralentini at gmail.com_*
>
> *_azzurra.lentini at uniroma3.it _**__*
>
> ++++++++++++++++++++++++++
> *Par respect pour l'environnement,*
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211214/f41e4eb4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6694 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211214/f41e4eb4/attachment.png>
More information about the Qgis-user
mailing list