while setting up ESP-IDF in Ubuntu export.sh gives error
Posted: Thu Jul 14, 2022 2:00 pm
I am following instructions given in the topic: "Standard Toolchain Setup for Linux and macOS". While following step 4 to setup the environment variables I get the following errors while trying to execute export.sh.
abdul@ubuntu:~/esp/esp-idf$ . $HOME/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/abdul/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Checking "python" ...
Checking "python3.8" ...
Python 3.8.13
"python3.8" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Using Python interpreter in /home/abdul/.espressif/python_env/idf5.0_py3.8_env/bin/python
Checking if Python packages are up to date...
Skipping the download of /home/abdul/.espressif/espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Constraint file: /home/abdul/.espressif/espidf.constraints.v5.0.txt
Requirement files:
- /home/abdul/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/abdul/.espressif/python_env/idf5.0_py3.8_env/bin/python
pkg_resources cannot be imported probably because the pip package is not installed and/or using a legacy Python interpreter. Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
I have the following Python version installed:
abdul@ubuntu:~/esp/esp-idf$ python --version
Python 3.8.13
I have the following pip3 version installed:
abdul@ubuntu:~/esp/esp-idf$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
Kindly guide in fixing this issue.
abdul@ubuntu:~/esp/esp-idf$ . $HOME/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/abdul/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Checking "python" ...
Checking "python3.8" ...
Python 3.8.13
"python3.8" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Using Python interpreter in /home/abdul/.espressif/python_env/idf5.0_py3.8_env/bin/python
Checking if Python packages are up to date...
Skipping the download of /home/abdul/.espressif/espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Constraint file: /home/abdul/.espressif/espidf.constraints.v5.0.txt
Requirement files:
- /home/abdul/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/abdul/.espressif/python_env/idf5.0_py3.8_env/bin/python
pkg_resources cannot be imported probably because the pip package is not installed and/or using a legacy Python interpreter. Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
I have the following Python version installed:
abdul@ubuntu:~/esp/esp-idf$ python --version
Python 3.8.13
I have the following pip3 version installed:
abdul@ubuntu:~/esp/esp-idf$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
Kindly guide in fixing this issue.