Page 1 of 1

parttool.py crashes when retrieving partition info

Posted: Thu Mar 05, 2020 10:29 am
by Xavi92
Using parttool.py from esp-idf v4.0 tag (commit hash f9cb434eeb90be4f34893a278d0a70a8b21e4ca2), the following error appears when attempting to retrieve partition info:

Code: Select all

$ parttool.py --partition-table-file partition_table.csv get_partition_info --partition-name ota_data
Traceback (most recent call last):
  File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 346, in <module>
    main()
  File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 339, in main
    op(**common_args)
  File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 208, in _get_partition_info
    for i in info:
TypeError: 'NoneType' object is not iterable
This error occurs when a valid partition name is given, nothing is returned otherwise.

Re: parttool.py crashes when retrieving partition info

Posted: Thu Mar 19, 2020 2:53 pm
by Xavi92
Could anyone please confirm this issue?
Thank you very much.

Re: parttool.py crashes when retrieving partition info

Posted: Thu Apr 02, 2020 1:45 pm
by frhuns
I can confirm on ArchLinux Python 3 idf release/v4.1
(with esptool at 91bdc71841d1b4e561e8e896405b58db86d5fd72 if that helps)