Skip to content

`aidge_benchmark` is not python 3.10 compatible

What commit version of aidge do you use

  • aidge_core: 0.6.2

Problem description

The ingrained habit of using the --help or -h flags to check the documentation of aidge_benchmark does result in an error. The same goes for --version. I would expect those flags to either silently end the command, or produce a list of available options for the tool (and a version number of --version).

What would be the recommended way to learn about the aidge_benchmark tool (besides reading the code)? It does not seem to be referenced in the online documentation.

The following commands (following the $ prompt) and their output:

$ aidge_benchmark -h
Traceback (most recent call last):
  File "/home/blesage/code/aidge_export_acetone/.venv/bin/aidge_benchmark", line 5, in <module>
    from aidge_core.benchmark.benchmark import main
  File "/home/blesage/code/aidge_export_acetone/.venv/lib/python3.11/site-packages/aidge_core/benchmark/benchmark.py", line 222
    print(f"{tree.grow(branch=False, leaf= (m_id >= NB_MODULES - 1))}{m["name"]} ", end='')
                                                                         ^^^^
SyntaxError: f-string: unmatched '['
$ aidge_benchmark --version
Traceback (most recent call last):
  File "/home/blesage/code/aidge_export_acetone/.venv/bin/aidge_benchmark", line 5, in <module>
    from aidge_core.benchmark.benchmark import main
  File "/home/blesage/code/aidge_export_acetone/.venv/lib/python3.11/site-packages/aidge_core/benchmark/benchmark.py", line 222
    print(f"{tree.grow(branch=False, leaf= (m_id >= NB_MODULES - 1))}{m["name"]} ", end='')
                                                                         ^^^^
SyntaxError: f-string: unmatched '['