<div dir="ltr"><div><div><div>After the upgrade to grass <span id="projectnumber">7.1.svn(2014)-r62856<br><br></span></div><span id="projectnumber">Most of my initial python scripts can't run, I get the error below.<br><br>Traceback (most recent call last):<br>  File "phenology/cloud_filter/grass_modis_filter_MODIS.py", line 13, in <module><br>    l = dict.keys(g.parse_command("g.mlist",type="rast"))<br>  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 465, in parse_command<br>    res = read_command(*args, **kwargs)<br>  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 422, in read_command<br>    process = pipe_command(*args, **kwargs)<br>  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 397, in pipe_command<br>    return start_command(*args, **kwargs)<br>  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 358, in start_command<br>    return Popen(args, **popts)<br>  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 62, in __init__<br>    subprocess.Popen.__init__(self, args, **kwargs)<br>  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__<br>    errread, errwrite)<br>  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child<br>    raise child_exception<br>OSError: [Errno 2] No such file or directory<br><br></span></div><span id="projectnumber">I guess, the command g.parse_command is no longer valid in grass 7.1. I have see in some forums, reference to a new grass python module pygrass. <br><br>I assume this is now the default interface of python to grass. I will go through it and see if I can refactor my codes to use pygrass.<br><br></span></div><span id="projectnumber">Thanks<br></span></div>