[GRASS-user] PyGRASS: No such file or directory using Module

Luí­s de Sousa luis.de.sousa at protonmail.ch
Fri Jun 24 04:26:44 PDT 2016


Hi Markus, thank you for replying.

The LD_LIBRARY_PATH environment variable was not correctly set up at run time. All the required variables must be set session wide before firing up the interpreter and I was not aware of it.

Regards,

Luís



-------- Original Message --------
Subject: Re: [GRASS-user] PyGRASS: No such file or directory using Module
Local Time: 23 June 2016 7:08 PM
UTC Time: 23 June 2016 17:08
From: neteler at osgeo.org
To: luis.de.sousa at protonmail.ch
CC: grass-user at lists.osgeo.org

On Tue, Jun 21, 2016 at 8:20 AM, Luí­s de Sousa
<luis.de.sousa at protonmail.ch> wrote:
> Hello everyone,
>
> I am trying to use PyGRASS following the example scripts at the Wiki:
> https://grasswiki.osgeo.org/wiki/GRASS_and_Python#pygrass_Library
>
> But on each call to the Module method I get a "No such file or directory"
> error (reproduced below). This is an issue with the call to Popen, but I can
> not tell if its related to this method itself or to the GRASS modules.
>
> Any ideas on what may be going wrong? Thank you,
>
> Luís
>
>
> OSError error(2): No such file or directory
> Traceback (most recent call last):
> File "/home/desouslu/git/pywps-4-demo/processes/pygrass-demo4.py", line
> 29, in <module>
> ogrimport = Module('v.in.ogr')
> File
> "/usr/lib/grass70/etc/python/grass/pygrass/modules/interface/module.py",
> line 466, in __init__
> raise GrassError(str_err % self.name)
> grass.exceptions.GrassError: Error running: `v.in.ogr
> --interface-description`.


Are you running this in a GRASS GIS session? Technically that is not
much more than setting some environment variables (see Wiki).

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160624/d4fe3506/attachment.html>


More information about the grass-user mailing list