[GRASS-dev] installing metadata addon fails

Paulo van Breugel p.vanbreugel at gmail.com
Fri Jan 9 02:12:56 PST 2015


Installation went fine.. but in g.gui.metadata when trying to edit /create
metadata for a layer, I get the following error (not sure if this is the
same as the one you report)

GRASS 7.1.svn (LatLongTest):~ > g.gui.metadata
Traceback (most recent call last):
  File "/home/paulo/.grass7/addons/scripts/g.gui.metadata", line 1031, in
onEdit
    ok = self.GetParent().onEditMapMetadata()
  File "/home/paulo/.grass7/addons/scripts/g.gui.metadata", line 257, in
onEditMapMetadata
    self.mdCreator.createGrassBasicISO()
  File "/home/paulo/.grass7/addons/etc/mdlib/mdgrass.py", line 186, in
createGrassBasicISO
    self.md.identification.title =
mdutil.replaceXMLReservedChar(self.md_grass['title'])
KeyError: 'title'


On Thu, Jan 8, 2015 at 6:44 PM, Martin Landa <landa.martin at gmail.com> wrote:

> Hi,
>
> 2015-01-08 16:37 GMT+01:00 Paulo van Breugel <p.vanbreugel at gmail.com>:
> > The installation of the metadata addon on GRASS 7 (trunk) fails, with the
> > message below. Any ideas?
>
> I have fixed installation in r63999-64001. But `r.info.iso` fails
>
> r.info.iso dmt
> WARNING: date of creation: unknown date format
> Traceback (most recent call last):
>   File "/home/martin/.grass7/addons/scripts/r.info.iso", line 83, in
> <module>
>     main()
>   File "/home/martin/.grass7/addons/scripts/r.info.iso", line 75, in main
>     overwrite=os.getenv('GRASS_OVERWRITE', False))
>   File "/home/martin/.grass7/addons/etc/mdlib/mdgrass.py", line 346, in
> saveXML
>     template = env.get_template(self.template)
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.8_devdev_20140629-py2.7.egg/jinja2/environment.py",
> line 801, in get_template
>     return self._load_template(name, self.make_globals(globals))
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.8_devdev_20140629-py2.7.egg/jinja2/environment.py",
> line 763, in _load_template
>     cache_key = self.loader.get_source(self, name)[1]
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.8_devdev_20140629-py2.7.egg/jinja2/loaders.py",
> line 187, in get_source
>     raise TemplateNotFound(template)
> jinja2.exceptions.TemplateNotFound:
> /home/martin/.grass7/addons/etc/templates/basicTemplate.xml
>
> The mystery is that the file
> (/home/martin/.grass7/addons/etc/templates/basicTemplate.xml) exists:
>
> $ file /home/martin/.grass7/addons/etc/templates/basicTemplate.xml
> /home/martin/.grass7/addons/etc/templates/basicTemplate.xml: XML document
> text
>
> I hope that the original author (Matej in cc) will know more. Martin
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.eu/mentors/landa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150109/522b115c/attachment.html>


More information about the grass-dev mailing list