Latest setuptools upgrade v82.0.0 breaks ESP-IDF export.sh in v5.1 (at least)

TeXniKK
Posts: 1
Joined: Thu Mar 12, 2026 11:00 am

Latest setuptools upgrade v82.0.0 breaks ESP-IDF export.sh in v5.1 (at least)

Postby TeXniKK » Thu Mar 12, 2026 11:05 am

Unfortunately latest setuptools upgrade v82.0.0 breaks ESP-IDF export.sh script:

Code: Select all

esp-idf % . ./export.sh 
Detecting the Python interpreter
Checking "python3" ...
Python 3.14.3
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /Users/user/.espressif/espidf.constraints.v5.1.txt
Requirement files:
 - /Development/esp32/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /Users/user/.espressif/python_env/idf5.1_py3.14_env/bin/python
pkg_resources cannot be imported. The most common cause is a missing pip or setuptools package. If you've installed a custom Python then these packages are provided separately and have to be installed as well. Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
From https://setuptools.pypa.io/en/stable/hi ... ml#v82-0-0 :

Code: Select all

pkg_resources has been removed from Setuptools.
It's caused by the fact that ESP-IDF v5.1 (and maybe others as well) always tries to install latest version of setuptools package

pdragun
Espressif staff
Espressif staff
Posts: 16
Joined: Fri Dec 02, 2022 2:18 pm

Re: Latest setuptools upgrade v82.0.0 breaks ESP-IDF export.sh in v5.1 (at least)

Postby pdragun » Wed Mar 18, 2026 12:44 pm

Hi, please make sure that you are using the latest patch version of ESP-IDF. Currently, for the v5.1 release, it is 5.1.7

This issue was already fixed almost two years ago. There shouldn't be dependency on pkg_resources anymore, see: https://github.com/espressif/esp-idf/co ... 8fa59d1ce7

Using the latest patch release and setuptools v82.0.1, I am not able to reproduce this issue.

Who is online

Users browsing this forum: akashgaur0001, ChatGPT-User and 6 guests