Hi everybody, for a project I'm using grass python interface from QGIS. Everything is working on Linux (I tested different OS) but on windows I get this error
Traceback (most recent call last): File "C:\Users\delucchil\.qgis2\python\plugins\stem\tools\feat_vege.py", line 106, in onRunLocal tempin, tempout, gs = STEMUtils.temporaryFilesGRASS(name) File "C:\Users\delucchil\.qgis2\python\plugins\stem\stem_utils.py", line 304, in temporaryFilesGRASS gs = stemGRASS(pid, grassdatabase, location, grassbin, epsg) File "C:\Users\delucchil\.qgis2\python\plugins\stem\libs\grass_stem.py", line 103, in __init__ gcore.create_location(grassdatabase, location, epsg=epsg) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 1351, in create_location gisdbase = gisenv()['GISDBASE'] File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 902, in gisenv s = read_command("g.gisenv", flags='n') File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 424, in read_command process = pipe_command(*args, **kwargs) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 399, in pipe_command return start_command(*args, **kwargs) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 354, in start_command if debug_level() > 0: File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 1485, in debug_level _debug_level = int(gisenv().get('DEBUG', 0)) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 902, in gisenv s = read_command("g.gisenv", flags='n') File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 424, in read_command process = pipe_command(*args, **kwargs) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 399, in pipe_command return start_command(*args, **kwargs) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 360, in start_command return Popen(args, **popts) File "C:\OSGeo4W\apps\grass\grass-7.0.0RC2\etc\python\grass\script\core.py", line 62, in __init__ subprocess.Popen.__init__(self, args, **kwargs) File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 703, in __init__ errread, errwrite) = self._get_handles(stdin, stdout, stderr) File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 839, in _get_handles p2cread = self._make_inheritable(p2cread) File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 878, in _make_inheritable _subprocess.DUPLICATE_SAME_ACCESS) WindowsError: [Error 6] Handle non valido I don't know if it is a problem of GRASS, or QGIS or subprocess, can someone help me? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev