Page 1 of 1

ESP-IDF 'install.sh' Python error

Posted: Thu Feb 03, 2022 10:24 am
by art4evs
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

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

Posted: Thu Feb 03, 2022 11:36 am
by ESP_Roland
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.

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

Posted: Thu Feb 03, 2022 10:50 pm
by art4evs
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