esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
285 stars 34 forks source link

PlatformIO 6.1.13 as used in ESPHome 2024.4.2 is not compatible with Ubuntu 24.04 LTS Noble Numbat #5766

Closed ptr727 closed 6 days ago

ptr727 commented 2 weeks ago

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

ptr727 commented 1 week ago

As alternative (tested on Win11 + Python 3.12) explicitly install setuptools, e.g. pip install --upgrade [--pre] setuptools wheel platformio esphome