strictdoc-project / strictdoc

Software for technical documentation and requirements management.
https://strictdoc.readthedocs.io/en/stable/
Other
156 stars 26 forks source link

Bug: v0.3.0 does not work with python 3.12.3 (default on Ubuntu 24.04 LTS) #2014

Closed johanenglund closed 1 day ago

johanenglund commented 1 day ago

Describe the bug

With v0.3.0 strictdoc stopped working with python 3.12.3 (v0.2.1 worked).

To Reproduce

Run export or server.

Expected behavior

Screenshots

Traceback (most recent call last):
  File "/home/johan/virtual_python/bin/strictdoc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/cli/main.py", line 184, in main
    raise exc
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/cli/main.py", line 179, in main
    _main(parallelizer)
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/cli/main.py", line 74, in _main
    export_action.build_index()
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/helpers/timing.py", line 18, in wrap
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/core/actions/export_action.py", line 41, in build_index
    TraceabilityIndexBuilder.create(
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/core/traceability_index_builder.py", line 183, in create
    traceability_index.create_traceability_info(
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/core/traceability_index.py", line 448, in create_traceability_info
    self._file_traceability_index.create_traceability_info(
  File "/home/johan/virtual_python/lib/python3.12/site-packages/strictdoc/core/file_traceability_index.py", line 437, in create_traceability_info
    function_.name
AssertionError

Environment

OS: Ubuntu Linux 24.04 LTS, python 3.12.3

Additional context

I realize that python 3.8 is the supported version so I don't expect this to be resolved but could be good to know.