[GRASS-dev] problem installing wx.metadata from g.extension

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Wed Feb 10 01:08:12 PST 2016


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 <module>
    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 <module>
    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

From: grass-dev [mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Vaclav Petras
Sent: 12. januar 2016 03:49
To: Martin Landa <landa.martin at gmail.com>
Cc: GRASS developers list <grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] problem installing wx.metadata from g.extension


On Mon, Jan 11, 2016 at 9:54 AM, Martin Landa <landa.martin at gmail.com<mailto:landa.martin at gmail.com>> wrote:
2016-01-11 15:44 GMT+01:00 Matej Krejci <matejkrejci at gmail.com<mailto:matejkrejci at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160210/52323e49/attachment-0001.html>


More information about the grass-dev mailing list