OS: Ubuntu Mate
Version: v4.2
While installing the ESP-IDF for ESPS2, I am finding an error as shown below.

Requirements file is also attached below.
My current pip version is: pip 20.3.1 (python 2.7)
Can anyone please solve this issue?
+1
Hi @GunashekarG & @fetullah-usr. We already fixed this but the change haven't made it into Github yet. The following checksums will become clickable links when it does: dc98d0aeee8b4766d9b312c6065b503073c42105 for master, 9ff5f94233d5e8b5a124ab9b58b913f049e47597 for v4.2.
Until then the workaround is to add manually the following line into the requirements.txt:
python-socketio<5; python_version<="2.7"
We are sorry for the inconvenience.
The long term recommendation is to switch to Python 3: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-setup.html#setting-up-python-3-as-default-for-ubuntu-and-debian
That will also fix the above issue and avoid future Python 2 incompatibilities.
It's working now after updating to Python3. Thank you guys. Cheers.
Thank you for the feedback. I keep this open for others to see it until the fix will be available.
This worked for me also - thanks for the help.
One note (probably only an issue on Mac) if you are having issues convincing it to run with Python3 (as is common on recent version of Mac OS) you can force the tools/idf_tools.py script to use Python3 by changing its first line to #!/usr/bin/env python3 and then run ./install.sh.
The fix is available in master now: https://github.com/espressif/esp-idf/commit/dc98d0aeee8b4766d9b312c6065b503073c42105
Most helpful comment
The long term recommendation is to switch to Python 3: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-setup.html#setting-up-python-3-as-default-for-ubuntu-and-debian
That will also fix the above issue and avoid future Python 2 incompatibilities.