Hi

I think I followed the instructions but spec2modules.py died with this:

(env) [joel@localhost rtems-central]$ ./spec2modules.py
Traceback (most recent call last):
  File "./spec2modules.py", line 84, in <module>
    main()
  File "./spec2modules.py", line 70, in main
    item_cache = rtemsspec.items.ItemCache(config["spec"])
  File "/home/joel/rtems-work/rtems/rtems-central/rtemsspec/items.py", line
655, in __init__
    self._load_items(config)
  File "/home/joel/rtems-work/rtems/rtems-central/rtemsspec/items.py", line
758, in _load_items
    self._load_items_recursive(str(index), path, path, cache_dir)
  File "/home/joel/rtems-work/rtems/rtems-central/rtemsspec/items.py", line
746, in _load_items_recursive
    for name in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: 'modules/rtems/spec'
(env) [joel@localhost rtems-central]$ vi spec2modules.py
(env) [joel@localhost rtems-central]$ /usr/bin/env python
Python 3.6.12 (default, Oct 23 2020, 13:36:31)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

A bit of investigation showed that the various rtems module directories
were empty. Can the tool do a sanity check and report something more useful
than a stack trace?

I feel like an old man yelling at clouds but a stack trace is a horrible
way to report what is a reasonable to expect setup error. A simple check
and message to hint what's going on really and how to resolve it would be
better.

--joel
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to