You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running the Tools/scripts/summarize_stats.py script fails with the following:
Traceback (most recent call last):
File "/home/mdboom/Work/builds/cpython/Lib/pdb.py", line 2110, in main pdb._run(target)
File "/home/mdboom/Work/builds/cpython/Lib/pdb.py", line 1882, in _run self.run(target.code)
File "/home/mdboom/Work/builds/cpython/Lib/bdb.py", line 600, in run exec(cmd, globals, locals)
File "<string>", line 1, in <module>
File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 686, in <module>
main()
File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 683, in main output_stats(args.inputs, json_output=args.json_output) File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 639, in output_stats output_single_stats(stats)
File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 607, in output_single_stats
emit_call_stats(stats)
File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 460, in emit_call_stats
rows = calculate_call_stats(stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mdboom/Work/builds/cpython/Tools/scripts/summarize_stats.py", line 451, in calculate_call_stats label = name + " (" + pretty(defines[index][0]) + ")"~~~~~~~~~~~~~~^^^IndexError: list index out of range
This was broken by #108754 since it moved the stats definitions from Include/pystats.h to Include/cpython/pystats.h, but the path wasn't updated in summarize_stats.py.
Bug report
Bug description:
After building with
./configure --enable-pystats
and collecting some pystats with this script:running the
Tools/scripts/summarize_stats.py
script fails with the following:This was broken by #108754 since it moved the stats definitions from
Include/pystats.h
toInclude/cpython/pystats.h
, but the path wasn't updated insummarize_stats.py
.I will have a fix posted shortly.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: