Upgrading ESP-IDF from v4.4.7 to v5.0
Posted: Mon Nov 11, 2024 9:43 am
Hi!
I am using Ubuntu 22.04.5 LTS (Jammy Jellyfish) and python3-venv is installed, however I get following error:
Same happens with tags v5.0 and v.5.2 so it seems quite systematic after version 5.0 and higher.
I am using Ubuntu 22.04.5 LTS (Jammy Jellyfish) and python3-venv is installed, however I get following error:
Code: Select all
Extracting /opt/esp/dist/cmake-3.24.0-linux-x86_64.tar.gz to /opt/esp/tools/cmake/3.24.0
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, [b]you need to install the python3-venv[/b]
package using the following command.
apt install python3.8-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/opt/esp/python_env/idf5.0_py3.8_env/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']
Creating a new Python environment in /opt/esp/python_env/idf5.0_py3.8_env
Traceback (most recent call last):
File "/opt/esp/idf/tools/idf_tools.py", line 2529, in <module>
main(sys.argv[1:])
File "/opt/esp/idf/tools/idf_tools.py", line 2521, in main
action_func(args)
File "/opt/esp/idf/tools/idf_tools.py", line 1997, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'venv',
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'venv', '--clear', '/opt/esp/python_env/idf5.0_py3.8_env']' returned non-zero exit status 1.
Error: error building at STEP "RUN : && update-ca-certificates --fresh && $IDF_PATH/tools/idf_tools.py --non-interactive install required --targets=${IDF_INSTALL_TARGETS} && $IDF_PATH/tools/idf_tools.py --non-interactive install cmake && $IDF_PATH/tools/idf_tools.py --non-interactive install-python-env && rm -rf $IDF_TOOLS_PATH/dist && :": error while running runtime: exit status 1