ESP32Partitions icon indicating copy to clipboard operation
ESP32Partitions copied to clipboard

Tool fails to launch - Windows 10

Open MarcJenningsUK opened this issue 7 years ago • 7 comments
trafficstars

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

MarcJenningsUK avatar Mar 30 '18 12:03 MarcJenningsUK

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/

francis94c avatar Jun 30 '18 18:06 francis94c

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

teoh770 avatar Sep 25 '18 14:09 teoh770

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?

sirpete83 avatar Sep 27 '18 08:09 sirpete83

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

Try with python 2.7

francis94c avatar Dec 28 '18 23:12 francis94c

Hi can you solve this for me capture

anasabdelrahman avatar Jan 24 '19 16:01 anasabdelrahman

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

francis94c avatar Feb 01 '19 15:02 francis94c

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:

  • calibrate_ui
  • get_data_indices
  • get_ota_app_indices ), but you can execute the application now.

Adrianotiger avatar Mar 07 '19 16:03 Adrianotiger