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? strongapa.yml: SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause copyrights: - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) enabled-by: true glossary-type: term links: - role: glossary-member uid: ../glossary-general term: Strong APA text: Strong APA is a specialization of ${apa:/term}. In this model, on the arrival of a ${thread:/term}, every thread reachable from the newly arrived thread is checked to see if an existing thread can be shifted (or deallocated its processor) and the newly arrived thread take its place if the newly arrived thread has a higher priority. Similar analysis is done when a thread finishes its execution (Here, the terms task and thread have interchangeable definitions). :cite:`Cerqueira:2014:LPA` type: glossary On Mon, Jun 15, 2020 at 5:04 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 15/06/2020 13:32, Richi Dubey wrote: > > > Thanks for your quick response. I am getting the following error: > > > > richi@YouAreAmazing:~/rtems-qual$ git pull > > Already up to date. > > richi@YouAreAmazing:~/rtems-qual$ ./spec2doc.py > > File "./spec2doc.py", line 31 > > def main() -> None: > > ^ > > SyntaxError: invalid syntax > > > > Is it because I am running Python 2.7.17? > Please read the README.md. >
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel