esp32-idf parttool.py stops with error UnicodeDecodeError (IDF-2839)
Posted: Fri Feb 19, 2021 8:24 am
HI,
I've run out of ideas on this one and now my project is stuck - really appreciate if someone can help on this one.
When running parttool.py to upload a .bin nvs file I get "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 1: ordinal not in range(128)"
I am using esp-idf version 4.2 on Ubuntu 18.04. I've tried to remove and re-install esp-idf. Problem still there. Tried to run with Python 3.6 and 2.7. Still same problem. The command and error messages are shown below. Any ideas are welcomed.
~/esp/esp-idf/components/partition_table/parttool.py write_partition --partition-name=nvs_app --input station33.bin
Traceback (most recent call last):
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 347, in <module>
main()
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 316, in main
target = ParttoolTarget(**target_args)
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 114, in __init__
partition_table = gen.PartitionTable.from_binary(f.read())
File "$HOME/esp/esp-idf/components/partition_table/gen_esp32part.py", line 231, in from_binary
result.append(PartitionDefinition.from_binary(data))
File "$HOME/esp/esp-idf/components/partition_table/gen_esp32part.py", line 381, in from_binary
res.name = res.name.decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 1: ordinal not in range(128)
I've run out of ideas on this one and now my project is stuck - really appreciate if someone can help on this one.
When running parttool.py to upload a .bin nvs file I get "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 1: ordinal not in range(128)"
I am using esp-idf version 4.2 on Ubuntu 18.04. I've tried to remove and re-install esp-idf. Problem still there. Tried to run with Python 3.6 and 2.7. Still same problem. The command and error messages are shown below. Any ideas are welcomed.
~/esp/esp-idf/components/partition_table/parttool.py write_partition --partition-name=nvs_app --input station33.bin
Traceback (most recent call last):
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 347, in <module>
main()
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 316, in main
target = ParttoolTarget(**target_args)
File "$HOME/esp/esp-idf/components/partition_table/parttool.py", line 114, in __init__
partition_table = gen.PartitionTable.from_binary(f.read())
File "$HOME/esp/esp-idf/components/partition_table/gen_esp32part.py", line 231, in from_binary
result.append(PartitionDefinition.from_binary(data))
File "$HOME/esp/esp-idf/components/partition_table/gen_esp32part.py", line 381, in from_binary
res.name = res.name.decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 1: ordinal not in range(128)