ESP-IDF 'install.sh' Python error

art4evs
Posts: 5
Joined: Thu Feb 03, 2022 10:14 am

ESP-IDF 'install.sh' Python error

Postby art4evs » Thu Feb 03, 2022 10:24 am

Hello,

I'm attempting to install the ESP-IDF on Linux. The prerequisites were installed successfully, but I can't seem to get past the following step:
arthur@arthur-desktop:~/esp/esp-idf$ ./install.sh esp32
Detecting the Python interpreter
Checking "python" ...
Checking "python3" ...
Python 3.6.9
"python3" has been detected
Traceback (most recent call last):
File "/home/arthur/esp/esp-idf/tools/install_util.py", line 70, in <module>
main()
File "/home/arthur/esp/esp-idf/tools/install_util.py", line 55, in main
subparsers = parser.add_subparsers(dest='action', required=True)
File "/usr/lib/python3.6/argparse.py", line 1716, in add_subparsers
action = parsers_class(option_strings=[], **kwargs)
TypeError: __init__() got an unexpected keyword argument 'required'
arthur@arthur-desktop:~/esp/esp-idf$
I've tried everything I can think of, mainly upgrading the 'pip' system and making sure that the versions aren't becoming entangled (I have to run 'pip3', technically). But the correct Python version is being detected here, so I don't get why this error is happening. I'm running Linux Mint 19.1 and my kernel is '4.18.0-20-generic'. Thanks for any help that can be provided, as I'm dead in the water currently.

- Arthur

User avatar
ESP_Roland
Posts: 257
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP-IDF 'install.sh' Python error

Postby ESP_Roland » Thu Feb 03, 2022 11:36 am

Hi,

the master branch supports Python 3.7 or newer. Please update your Python. The fix with the proper error message will come soon.

... or you can use the release/v4.4 branch until you are able to make the update.

art4evs
Posts: 5
Joined: Thu Feb 03, 2022 10:14 am

Re: ESP-IDF 'install.sh' Python error

Postby art4evs » Thu Feb 03, 2022 10:50 pm

Thanks for the quick reply - 4.4 seems to be working well so far. 'apt' didn't seem to want to update Python on my OS. Please remember to change the documentation here, probably mentioning that "ESP-IDF 4.4 or earlier works with Python 3.6":

https://docs.espressif.com/projects/esp ... setup.html

Who is online

Users browsing this forum: No registered users and 61 guests