Build error: pkg_resource deprecated

shermanlee
Posts: 7
Joined: Fri Sep 02, 2022 1:33 am

Build error: pkg_resource deprecated

Postby shermanlee » Tue Aug 29, 2023 1:44 am

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

ESP_pdragun
Posts: 12
Joined: Fri Dec 02, 2022 2:18 pm

Re: Build error: pkg_resource deprecated

Postby ESP_pdragun » Tue Aug 29, 2023 8:12 am

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.

Who is online

Users browsing this forum: TheMrVon-Retired and 96 guests