Page 1 of 1

Build error: pkg_resource deprecated

Posted: Tue Aug 29, 2023 1:44 am
by shermanlee
I am working on a project using ESP-IDF with esp32s3.
I works fine before I upgraded the toolchains for another project. It shows
"DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html"

I hv read some articles and tried different suggested solutions like upgrading the setuptools of python.
Re-install IDF tools, upgrade python version, SDK version, added idf_component.yml... etc
But nothing work.

Anyone could suggest what shall I do to build my project?
Great thanks!

System info: Windows 10
IDF: Version: 2022-09 (4.25.0)
Python: 3.11
SDK: esp-idf-v5.1

Re: Build error: pkg_resource deprecated

Posted: Tue Aug 29, 2023 8:12 am
by ESP_pdragun
Hi,
it is just a warning and it can be ignored.
We have already implemented a fix for it and it should be part of ESP-IDF v5.1.1.

The other solution how to remove the warning is to downgrade the setuptools to a version lower than 67.5.0 - in which pkg_resources was deprecated.