parttool.py crashes when retrieving partition info

Xavi92
Posts: 45
Joined: Thu Mar 28, 2019 2:26 pm

parttool.py crashes when retrieving partition info

Postby Xavi92 » Thu Mar 05, 2020 10:29 am

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.

Xavi92
Posts: 45
Joined: Thu Mar 28, 2019 2:26 pm

Re: parttool.py crashes when retrieving partition info

Postby Xavi92 » Thu Mar 19, 2020 2:53 pm

Could anyone please confirm this issue?
Thank you very much.

frhuns
Posts: 1
Joined: Thu Apr 02, 2020 1:39 pm

Re: parttool.py crashes when retrieving partition info

Postby frhuns » Thu Apr 02, 2020 1:45 pm

I can confirm on ArchLinux Python 3 idf release/v4.1
(with esptool at 91bdc71841d1b4e561e8e896405b58db86d5fd72 if that helps)

Who is online

Users browsing this forum: No registered users and 21 guests