[GRASS-dev] Resolved - Error in GRASS GIS 7.0 database

Erick Opiyo osgis.dev at gmail.com
Tue Nov 25 06:44:42 PST 2014


After the upgrade to grass 7.1.svn(2014)-r62856

Most of my initial python scripts can't run, I get the error below.

Traceback (most recent call last):
  File "phenology/cloud_filter/grass_modis_filter_MODIS.py", line 13, in
<module>
    l = dict.keys(g.parse_command("g.mlist",type="rast"))
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line
465, in parse_command
    res = read_command(*args, **kwargs)
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line
422, in read_command
    process = pipe_command(*args, **kwargs)
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line
397, in pipe_command
    return start_command(*args, **kwargs)
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line
358, in start_command
    return Popen(args, **popts)
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/core.py", line 62,
in __init__
    subprocess.Popen.__init__(self, args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

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.

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.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20141125/d9bb1dcd/attachment.html>


More information about the grass-dev mailing list