[GRASS-user] pygrass v.to.db

Hi,

how to call in pygrass modules like `v.to.db`?

"""
from grass.pygrass.modules.shortcuts import vector as v

v.to.db(map='p5', option='area', column='vymera_ha', units='hectares')
"""

fails

  File "/opt/src/grass70_release/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/modules/interface/module.py",
line 289, in __init__
    raise GrassError(str_err % self.name)
grass.pygrass.errors.GrassError: u'Error running: `v.db
--interface-description`.'

Thanks, Martin

--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa

On Tue, Oct 21, 2014 at 6:31 PM, Martin Landa <landa.martin@gmail.com>
wrote:

Hi,

how to call in pygrass modules like `v.to.db`?

"""
from grass.pygrass.modules.shortcuts import vector as v

v.to.db(map='p5', option='area', column='vymera_ha', units='hectares')
"""

isn't it v.to_db?

Anna

fails

  File
"/opt/src/grass70_release/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/modules/interface/module.py",
line 289, in __init__
    raise GrassError(str_err % self.name)
grass.pygrass.errors.GrassError: u'Error running: `v.db
--interface-description`.'

Thanks, Martin

--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2014-10-22 3:26 GMT+02:00 Anna Petrášová <kratochanna@gmail.com>:

isn't it v.to_db?

I am getting the same error. Martin

--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa

On Wed, Oct 22, 2014 at 10:24 AM, Martin Landa <landa.martin@gmail.com> wrote:

2014-10-22 3:26 GMT+02:00 Anna Petrášová <kratochanna@gmail.com>:

isn't it v.to_db?

I am getting the same error. Martin

I can not reproduce your error:

{{{

from grass.pygrass.modules.shortcuts import vector as v
v2db = v.to.db

OSError error(2): No such file or directory
  [cut]
GrassError: Error running: `v.to --interface-description`.

v2db = v.to_db

}}}

I'm using an old version of grass70 (r60913), but I can not update at
the moment because I'm travelling...
I will check as soon as I arrive at home.

Pietro

On Wed, Oct 22, 2014 at 6:01 PM, Pietro <peter.zamb@gmail.com> wrote:

I can not reproduce your error:

ok, I compiled at the latest version of release 70 (r62357), and still
I have no problems to use and call the module with: v.to_db.