nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

size_report.py does not work with some versions "anytree" package

Open dbnnrmn opened this issue 1 year ago • 2 comments

The report script does not have "any tree" package in dependencies and need some old versions of this package. With version 2.12.1 it falls with this error :

File "/mnt/sdb1/nuttxspace/nuttx/./tools/size_report.py", line 815, in <module>
    main()
  File "/mnt/sdb1/nuttxspace/nuttx/./tools/size_report.py", line 802, in main
    root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
  File "/mnt/sdb1/nuttxspace/nuttx/./tools/size_report.py", line 559, in generate_any_tree
    root = TreeNode("Root", "root")
  File "/mnt/sdb1/nuttxspace/nuttx/./tools/size_report.py", line 533, in __init__
    self.size = size
AttributeError: can't set attribute 'size'

But version 2.8.0 works fine

dbnnrmn avatar Jan 28 '24 09:01 dbnnrmn

@xiaoxiang781216 any idea about it? I never saw this error on Ubuntu!

acassis avatar Jan 28 '24 22:01 acassis

If I am not wrong. This is not issue about nuttx, just the different version of python package. Maybe you can try this PR #10879

TaiJuWu avatar Apr 28 '24 22:04 TaiJuWu