<div dir="ltr"><div dir="ltr"><div>Hi everybody,<br>as some time ago, a problem with v.clean command in Qgis 3.2 (that was solved), we have a problem with v.clean command in Qgis 3.4.4 in OSX, as described in the follow (copy/paste of the log).</div><div>The solution adopted for version 3.2 is not applicable (setting PATH custom variable as described in the past).</div><br><br clear="all"><div><p style="margin:0px;white-space:pre-wrap"><span style="font-weight:600">Algorithm 'v.clean' starting…</span><br></p>
<p style="margin:0px;white-space:pre-wrap">Parametri in ingresso:</p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">{ '-b' : False, '-c' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.1, 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None, 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '', 'GRASS_VECTOR_LCO' : '', 'error' : '/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg', 'input' : 'dbname=\'xxxxxx\' host=xxxxx port=xxxxx user=\'xxxxxxx\' password=\'xxxxxx!\' sslmode=disable key=\'id\' srid=32632 type=MultiPolygon table=\"park\".\"landuse\" (geom) sql=', 'output' : '/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg', 'threshold' : '1', 'tool' : [1], 'type' : [2,4] }</span></p>
<p style="margin:0px;white-space:pre-wrap"><br></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">g.proj -c proj4="+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">v.in.ogr min_area=0.1 snap=-1.0 input="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/970afbcb038f4544a7b8e79aac80cb83/input.shp" output="vector_5c52eae28db5f2" --overwrite -o</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">g.region n=5007028.758751524 s=4996721.333720555 e=392101.72814972815 w=383568.4750642354</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">v.clean input=vector_5c52eae28db5f2 type="boundary,area" tool="snap" threshold="1" output=output0de114f3cb9942cbb8a039948fd4ead0 error=error0de114f3cb9942cbb8a039948fd4ead0 --overwrite</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">v.out.ogr -c type="auto" input="output0de114f3cb9942cbb8a039948fd4ead0" output="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg" format="GPKG" --overwrite</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">v.out.ogr -c type="auto" input="error0de114f3cb9942cbb8a039948fd4ead0" output="/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg" format="GPKG" --overwrite</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">WARNING: Default locale settings are missing. GRASS running with C locale.</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">Default locale not found, using UTF-8</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">Traceback (most recent call last):</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 2029, in <module></span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">main()</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1880, in main</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">set_paths(grass_config_dir=grass_config_dir)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 622, in set_paths</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">os.environ['MANPATH'] = sys_man_path</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py", line 674, in __setitem__</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">value = self.encodevalue(value)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py", line 744, in encode</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">raise TypeError("str expected, not %s" % type(value).__name__)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">TypeError: str expected, not bytes</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">WARNING: Default locale settings are missing. GRASS running with C locale.</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">Default locale not found, using UTF-8</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">Traceback (most recent call last):</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 2029, in <module></span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">main()</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1880, in main</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">set_paths(grass_config_dir=grass_config_dir)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 622, in set_paths</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">os.environ['MANPATH'] = sys_man_path</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py", line 674, in __setitem__</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">value = self.encodevalue(value)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py", line 744, in encode</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">raise TypeError("str expected, not %s" % type(value).__name__)</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco;color:rgb(119,119,119)">TypeError: str expected, not bytes</span></p>
<p style="margin:0px;white-space:pre-wrap">Esecuzione completata in 0.97 secondi</p>
<p style="margin:0px;white-space:pre-wrap">Risultati:</p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:Monaco">{'error': <QgsProcessingOutputLayerDefinition {'sink':/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg, 'createOptions': {'fileEncoding': 'System'}}>,<br>'output': <QgsProcessingOutputLayerDefinition {'sink':/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg, 'createOptions': {'fileEncoding': 'System'}}>}</span></p>
<p style="margin:0px;white-space:pre-wrap"><br></p>
<p style="margin:0px;white-space:pre-wrap">Caricamento layer</p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">I seguenti layers non sono stati caricati correttamente<ul><li>/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/7e4e6b0f24634063ba39e5941559e497/output.gpkg</li><li>/var/folders/_p/g0dpln352f7fw6mpryz77ddc0000gn/T/processing_43940e15e9294e058e7943b506cff2f8/bd1ad1147b3d4e64aff67f0339489634/error.gpkg</li></ul>Puoi verificare il "Pannello dei messaggi" nella finestra principale di QGIS per trovare maggiori informazioni circa l'esecuzione dell'algoritmo



</span></p></div>-- <br><div dir="ltr" class="gmail_signature">Federico MENSIO<br>IPLA spa<br>Corso Casale, 476 - 10132 Torino<br>Mobile +39.340.06.01.363<br>TEL +39.011.432.0443 FAX +39.011.89.89.333<br><a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a> - <a href="http://www.ipla.org" target="_blank">www.ipla.org</a><br><br>-------------------------------------------------------------------------------------<br>Questa e-mail è personale e i suoi contenuti contengono informazioni riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte di altri o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs 196/03.<br>Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente ai riferimenti indicati e provvedere immediatamente alla sua distruzione.<br><br>Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail</div></div></div>