francis94c / ESP32Partitions

35 stars 9 forks source link

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

Open saint-shark opened 5 years ago

saint-shark commented 5 years ago

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

francis94c commented 5 years ago

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