francis94c / ESP32Partitions

35 stars 9 forks source link

Tool fails to launch - Windows 10 #2

Open MarcJenningsUK opened 6 years ago

MarcJenningsUK commented 6 years ago

Installed the tool, and it fails to launch. Running the .py file in python 3.5 or 3.6 gives output :

C:\Users\marcj>python C:\Users\marcj\Documents\Arduino\tools\ESP32Partitions\tool\esp-partition.py File "C:\Users\marcj\Documents\Arduino\tools\ESP32Partitions\tool\esp-partition.py", line 498 buff = sorted(self.ui_map.iteritems(), key=lambda (k, v): (v, k)) ^ SyntaxError: invalid syntax

francis94c commented 6 years ago

I'm sorry i didn't get the notification of this issue on time @MarcJenningsUK

The script was written in Python 2.7, can you please try again with python 2.7 and give me a reply

You can use the link below to download it

https://www.python.org/download/releases/2.7/

teoh770 commented 6 years ago

Hi, I have the same issue too, it doesn't run on Windows 10, I have python 3.6 installed on my machine.

sirpete83 commented 6 years ago

Hallo, I have the same problem. Tool is not starting. I installed Arduino by using the Windows APP Store, maybe there is an other problem, using UWP?

francis94c commented 5 years ago

@MarcJenningsUK & @teoh770 your get the error because you are using python 3.7 on your machine.

Try with python 2.7

anasabdelrahman commented 5 years ago

Hi can you solve this for me capture

francis94c commented 5 years ago

@anasabdelrahman Were you trying to run a shell script with Python?

Adrianotiger commented 5 years ago

I modified the python script, so it works on Python 2 and Python 3. Just replace the esp-partition.py with this file.

esp-partition.zip

I just have a problem with the sort method. There are 3 lambda inside the sorted function and I am not able to write it for Python2 and 3. I commented them out (so, no sorting on: