Hi,
I tried building from source after installing the dependencies listed here:
https://grasswiki.osgeo.org/wiki/ISO/INSPIRE_Metadata_Support#Requirements_and_installation
plus python-reportlabs.
But I get an error for g.gui.metadata saying
“Traceback (most recent call last):
File “/usr/local/grass-7.1.svn/scripts/g.gui.metadata”, line 43, in
import mdgrass
ImportError: No module named mdgrass
make: *** [g.gui.metadata.tmp.html] Error 1
rm g.gui.metadata.tmp.html”
I had a look at the g.gui.metadata.py but have no idea how to fix that…
It did compile after I changed line 43 in g.gui.metadata.py to:
set_path(modulename=‘g.gui.metadata’, dirname=‘mdlib’, path=‘/usr/local/grass-7.1.svn/scripts/’)
However, when I then try to run the module I get:
“Traceback (most recent call last):
File “/usr/local/grass-7.1.svn/scripts/g.gui.metadata”, line 43, in
set_path(modulename=‘g.gui.metadata’, dirname=‘mdlib’, path=‘/usr/local/grass-7.1.svn/scripts/’)
File “/usr/local/grass-7.1.svn/etc/python/grass/pygrass/utils.py”, line 308, in set_path
return set_path(modulename=modulename, dirname=dirname, path=path)
File “/usr/local/grass-7.1.svn/etc/python/grass/script/utils.py”, line 370, in set_path
“(current dir ‘%s’).” % (pathname, os.getcwd()))
ImportError: Not able to find the path ‘g.gui.metadata/mdlib’ directory (current dir ‘/data/home/stefan’).”
I remember seeing that error before: http://osgeo-org.1560.x6.nabble.com/Installing-wx-metadata-fails-td5232359.html so maybe someone has a quick fix at hand?
Cheers
Stefan
···
On Mon, Jan 11, 2016 at 9:54 AM, Martin Landa <landa.martin@gmail.com> wrote:
2016-01-11 15:44 GMT+01:00 Matej Krejci <matejkrejci@gmail.com>:
thanks for update wiki page, I have updated (r67551) dependency file for
checking dependency before installation.
it would be nice to reduce number of dependencies for compiling to the
minimum. It’s the reason why this extension is not available for
Windows [1]. Most of dependencies are need for running the tool but
for compiling. Now they are checked before compiling which should be
changed in the future.
Agreed, there is an post about it here:
https://lists.osgeo.org/pipermail/grass-dev/2015-February/073734.html
There is now even more examples in addons how this can be done.