Hi, 

I'm running a course where we use QGIS LTR (3.16.16 'Hannover'). Students or 
their employer have installed QGIS on their own/work computers. In a practical 
task where they are using the GRASS tool v.generalize some students don't get 
any output. There is no error message. At the end of the log in the part were 
outputs are loaded it is just stated that the outputs were not correctly 
generated (see full log below - parts are in Norwegian, but essence should be 
understandable regardless). We also tried another GRASS tool and again no 
outputs were produced, so it seems this can be a general GRASS problem.  

Another student got this error message when running v.generalize:
FileNotFoundError: [WinError2] System cannot find file: 
'C:\\programdata\\qgis\\processing_ENBnGW\\grassdata\grass_batch_job.cmd'

I have searched for solutions but don't find any similar cases. However, I find 
this that might be related:
https://gis.stackexchange.com/questions/283337/grass-cmd-file-blocked-by-group-strategy

Does anyone have any idea about what the problem could be and how to solve it? 

Thanks for your help!

Kind regards, 
Gidske 


Log-message:
QGIS-versjon: 3.16.16-Hannover
QGIS-kodeversjon: f5778a89
Qt-versjon: 5.15.2
GDAL-versjon: 3.4.1
GEOS-versjon: 3.10.0-CAPI-1.16.0
PROJ-versjon: Rel. 8.2.1, January 1st, 2022
Kjører algoritme .
Algoritmen «v.generalize» starter .
Inndataparametre:
{ '-l' : True, '-t' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001, 
'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None, 
'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '', 
'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'alpha' : 1, 
'angle_thresh' : 3, 'beta' : 1, 'betweeness_thresh' : 0, 'cats' : '', 
'closeness_thresh' : 0, 'degree_thresh' : 0, 'error' : 'TEMPORARY_OUTPUT', 
'input' : 
'C:/GEO620_C/Lab3.1_NaturalEarth/packages/natural_earth_vector.gpkg|layername=ne_50m_admin_0_countries',
 'iterations' : 1, 'look_ahead' : 7, 'method' : 0, 'output' : 
'C:/GEO620_C/test.gpkg', 'reduction' : 50, 'slide' : 0.5, 'threshold' : 1, 
'type' : [0,1,2], 'where' : '' }

g.proj -c 
wkt="C:/Users/mm249/AppData/Local/Temp/processing_eglHsD/50824fa9426e47d3bba03da90a7c5331/crs.prj"
v.in.ogr min_area=0.0001 snap=-1.0 
input="C:\GEO620_C\Lab3.1_NaturalEarth\packages\natural_earth_vector.gpkg" 
layer="ne_50m_admin_0_countries" output="vector_620e135429c154" --overwrite -o
g.region n=83.5996 s=-89.9989 e=180.0 w=-180.0
v.generalize input=vector_620e135429c154 type="line,boundary,area" 
method="douglas" threshold=1 look_ahead=7 reduction=50 slide=0.5 angle_thresh=3 
degree_thresh=0 closeness_thresh=0 betweeness_thresh=0 alpha=1 beta=1 
iterations=1 -l output=output6f1c246e149e400685793363591c7252 
error=error6f1c246e149e400685793363591c7252 --overwrite
v.out.ogr type="auto" input="output6f1c246e149e400685793363591c7252" 
output="C:\GEO620_C\test.gpkg" format="GPKG" --overwrite
v.out.ogr type="auto" input="error6f1c246e149e400685793363591c7252" 
output="C:\Users\mm249\AppData\Local\Temp\processing_eglHsD\c5ed03fd6b3e48eb8070572ae59c15a5\error.gpkg"
 format="GPKG" --overwrite
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
Cleaning up temporary files...
Executing 
<C:\Users\mm249\AppData\Local\Temp\processing_eglHsD\grassdata\grass_batch_job.cmd>
 ...
C:\Users\mm249\Documents>chcp 1252 1>NUL
C:\Users\mm249\Documents>g.proj -c 
wkt="C:/Users/mm249/AppData/Local/Temp/processing_eglHsD/50824fa9426e47d3bba03da90a7c5331/crs.prj"
C:\Users\mm249\Documents>v.in.ogr min_area=0.0001 snap=-1.0 
input="C:\GEO620_C\Lab3.1_NaturalEarth\packages\natural_earth_vector.gpkg" 
layer="ne_50m_admin_0_countries" output="vector_620e135429c154" --overwrite -o
C:\Users\mm249\Documents>g.region n=83.5996 s=-89.9989 e=180.0 w=-180.0
C:\Users\mm249\Documents>v.generalize input=vector_620e135429c154 
type="line,boundary,area" method="douglas" threshold=1 look_ahead=7 
reduction=50 slide=0.5 angle_thresh=3 degree_thresh=0 closeness_thresh=0 
betweeness_thresh=0 alpha=1 beta=1 iterations=1 -l 
output=output6f1c246e149e400685793363591c7252 
error=error6f1c246e149e400685793363591c7252 --overwrite
C:\Users\mm249\Documents>v.out.ogr type="auto" 
input="output6f1c246e149e400685793363591c7252" output="C:\GEO620_C\test.gpkg" 
format="GPKG" --overwrite
C:\Users\mm249\Documents>v.out.ogr type="auto" 
input="error6f1c246e149e400685793363591c7252" 
output="C:\Users\mm249\AppData\Local\Temp\processing_eglHsD\c5ed03fd6b3e48eb8070572ae59c15a5\error.gpkg"
 format="GPKG" --overwrite
C:\Users\mm249\Documents>exit
Execution of 
<C:\Users\mm249\AppData\Local\Temp\processing_eglHsD\grassdata\grass_batch_job.cmd>
 finished.
Cleaning up temporary files...
Beregningen ble utført på 1.34 sekunder
Resultat:
{'error': 
'C:\\Users\\mm249\\AppData\\Local\\Temp\\processing_eglHsD\\c5ed03fd6b3e48eb8070572ae59c15a5\\error.gpkg',
'output': 'C:\\GEO620_C\\test.gpkg'}

Last resultatlag
De følgende lagene ble ikke riktig dannet. 
. C:/GEO620_C/test.gpkg
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to