When installing ESPHome using pip on Ubuntu 24.04 LTS Noble Numbat, PlatformIO causes error ModuleNotFoundError: No module named 'pkg_resources' when opening the project folder using PlatformIO.
ESPHome pins PlaformIO to 6.1.13, installing using pip install --upgrade platformio warns about esphome, but seems to resolve the error when using 6.1.15.
The problem
See: https://github.com/platformio/platform-espressif32/issues/1277
When installing ESPHome using pip on Ubuntu 24.04 LTS Noble Numbat, PlatformIO causes error
ModuleNotFoundError: No module named 'pkg_resources'
when opening the project folder using PlatformIO.ESPHome pins PlaformIO to 6.1.13, installing using
pip install --upgrade platformio
warns about esphome, but seems to resolve the error when using 6.1.15.May be related to use of changes in setuptools
Which version of ESPHome has the issue?
2024.4.2
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
2024.4.2
What platform are you using?
ESP32
Board
esp32dev
Component causing the issue
platformio
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response