Esp-idf: ERROR: Could not find a version that satisfies the requirement bidict>=0.21.0 (IDFGH-4431)

Created on 14 Dec 2020  路  7Comments  路  Source: espressif/esp-idf

OS: Ubuntu Mate
Version: v4.2

While installing the ESP-IDF for ESPS2, I am finding an error as shown below.
Error_installation

Requirements file is also attached below.

requirements.txt

My current pip version is: pip 20.3.1 (python 2.7)

Can anyone please solve this issue?

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.

All 7 comments

+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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luc-github picture luc-github  路  4Comments

beriberikix picture beriberikix  路  3Comments

ESP32DE picture ESP32DE  路  4Comments

ghost picture ghost  路  4Comments

feelfreelinux picture feelfreelinux  路  4Comments