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
ogrimport = Module(‘v.in.ogr’)
File “/usr/lib/grass70/etc/python/grass/pygrass/modules/interface/module.py”, line 466, in init
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).
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