[PATCH 2/2] Adding strong and weak definitions

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jun 15 12:35:29 UTC 2020


On 15/06/2020 14:33, Richi Dubey wrote:

> Hi,
>
> rtems_to_spec and ./spec2doc, both are giving similar error:
>
> $ ./spec2doc.py
> Traceback (most recent call last):
>   File "./spec2doc.py", line 41, in <module>
>     main()
>   File "./spec2doc.py", line 37, in main
>     rtemsqual.glossary.generate(config["glossary"], item_cache)
>   File "/home/richi/rtems-qual/rtemsqual/glossary.py", line 137, in 
> generate
>     _generate_project_glossary(config["project-target"], project_glossary)
>   File "/home/richi/rtems-qual/rtemsqual/glossary.py", line 108, in 
> _generate_project_glossary
>     content = _generate_glossary_content(glossary.uid_to_item)
>   File "/home/richi/rtems-qual/rtemsqual/glossary.py", line 68, in 
> _generate_glossary_content
>     text = SphinxMapper(item).substitute(item["text"])
>   File "/home/richi/rtems-qual/rtemsqual/items.py", line 317, in 
> substitute
>     return ItemTemplate(text).substitute(self)
>   File "/usr/lib/python3.6/string.py", line 130, in substitute
>     return self.pattern.sub(convert, self.template)
>   File "/usr/lib/python3.6/string.py", line 123, in convert
>     return str(mapping[named])
>   File "/home/richi/rtems-qual/rtemsqual/items.py", line 307, in 
> __getitem__
>     return self.map(identifier)[1]
>   File "/home/richi/rtems-qual/rtemsqual/items.py", line 299, in map
>     item = self._item.map(uid)
>   File "/home/richi/rtems-qual/rtemsqual/items.py", line 188, in map
>     return self._item_cache[self.to_abs_uid(abs_or_rel_uid)]
>   File "/home/richi/rtems-qual/rtemsqual/items.py", line 334, in 
> __getitem__
>     return self._items[uid]
> KeyError: '/glossary/apa'
> (env)
>
> I can't find apa.yml in the glossary as well. What might be wrong?
The assertion is not really user friendly, however, you figured out the 
error quite well. There is no apa.yml in the glossary directory. This 
means you have to add it.


More information about the devel mailing list