ESP32Partitions icon indicating copy to clipboard operation
ESP32Partitions copied to clipboard

esp-partition.py does not execute with python 3 or 3.7

Open saint-shark opened this issue 6 years ago • 1 comments

Error message:(when using python 3 or 3.7)

File "esp-partition.py", line 498
    buff = sorted(self.ui_map.iteritems(), key=lambda (k, v): (v, k))
                                                      ^
SyntaxError: invalid syntax

It only compiles on python 2.7.

My system has default python compiler set to 3.7. Is there a way that I can specifically tell arduino IDE to use python 2.7?

My system specs: OS: Manjaro Linux Kernel: 4.14.101

saint-shark avatar Feb 21 '19 11:02 saint-shark

I think it's about time we re-write this to support python 3.7 as well.

francis94c avatar Mar 09 '19 00:03 francis94c