[GRASS-dev] wx.metadata not working

Paulo van Breugel p.vanbreugel at gmail.com
Thu Jan 22 09:04:57 PST 2015


And to further elaborate:

*rasters:*

   - Editing or creating metadata files seems impossible, see first error
   message.

*Vectors*

   - Using the edit button for a layer for which there is no metadata file
   yet results in the second error message. Note that notwithstanding the
   message, the /basicTemplate.xml is present in the templates folder.
   - If there is a metadata file, but I select another template, I get the
   error message as below
   - If there is a metadata file, and I select the template in which that
   metadata was written, it works


On Thu, Jan 22, 2015 at 5:55 PM, Paulo van Breugel <p.vanbreugel at gmail.com>
wrote:

> The earlier error message was when trying to create/edit a raster metadata
> file. The error message below is when trying to create/edit a vector
> metadata file.
>
> 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 259, in onEditMapMetadata
>     self.xmlPath =
> self.mdCreator.saveXML(self.mdDestination,
> self.nameTMPteplate, self)
>   File "/home/paulo/.grass7/addons/etc/mdlib/mdgrass.py",
> line 346, in saveXML
>     template = env.get_template(self.template)
>   File "/usr/lib/python2.7/dist-
> packages/jinja2/environment.py", line 791, in get_template
>     return self._load_template(name,
> self.make_globals(globals))
>   File "/usr/lib/python2.7/dist-
> packages/jinja2/environment.py", line 765, in _load_template
>     template = self.loader.load(self, name, globals)
>   File "/usr/lib/python2.7/dist-packages/jinja2/loaders.py",
> line 113, in load
>     source, filename, uptodate =
> self.get_source(environment, name)
>   File "/usr/lib/python2.7/dist-packages/jinja2/loaders.py",
> line 178, in get_source
>     raise TemplateNotFound(template)
> jinja2.exceptions.TemplateNotFound:
> /home/paulo/.grass7/addons/etc/templates/basicTemplate.xml
>
>
> On Thu, Jan 22, 2015 at 3:30 PM, Paulo van Breugel <p.vanbreugel at gmail.com
> > wrote:
>
>> After selecting a layer in the g.gui.metadata window (I am using grass 7
>> trunk) I get the following error when trying to edit the metadata of a
>> layer:
>>
>> 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'
>>
>> Any idea?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150122/97d25823/attachment.html>


More information about the grass-dev mailing list