Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool fails to launch - Windows 10 #2

Open
MarcJenningsUK opened this issue Mar 30, 2018 · 7 comments
Open

Tool fails to launch - Windows 10 #2

MarcJenningsUK opened this issue Mar 30, 2018 · 7 comments

Comments

@MarcJenningsUK
Copy link

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
Copy link
Owner

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
Copy link

teoh770 commented Sep 25, 2018

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

@sirpete83
Copy link

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
Copy link
Owner

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

Try with python 2.7

@anasabdelrahman
Copy link

Hi
can you solve this for me
capture

@francis94c
Copy link
Owner

francis94c commented Feb 1, 2019

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

@Adrianotiger
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants