Open Jamiro75 opened 6 months ago
Try rebuilding the container. I assume your config files are stored outside of the container.
Oh yes, sure .. When i've change the version i rebuild always the container but all the 2024.x.x give me the same error. I try to clean up the building file , and in the working dir, to have only the yaml file but when compile the error go on.
Il mar 26 mar 2024, 00:12 Samuel Sieb @.***> ha scritto:
Try rebuilding the container. I assume your config files are stored outside of the container.
— Reply to this email directly, view it on GitHub https://github.com/esphome/issues/issues/5636#issuecomment-2019084467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4MNB573DFHE46T4KIAGTDY2CVO5AVCNFSM6AAAAABFH3TEECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJZGA4DINBWG4 . You are receiving this because you authored the thread.Message ID: @.***>
I am seeing a very similar error whenever I try to update or recompile for one of my ESP8266's:
UnknownPackageError: Could not find the package with 'platformio/espressif8266 @ 4.2.1' requirements for your system 'linux_x86_64'
Running ESPHome 2024.4.1, inside docker (using compose) under Linux x86. I've rebuilt the container without any change.
Reverting to 2023.12.7
by changing my docker-compose.yml
to use image: ghcr.io/esphome/esphome:2023.12.7
has resolved the issue for now.
I'm receiving the same error whenever I try to upgrade or install from the YAML.
esphome:
container_name: esphome
image: esphome/esphome:latest
volumes:
- /home/curiosity/smart_home/data/esphome/:/config # Directory where home-assistant config files
- /etc/localtime:/etc/localtime:ro # Expose local time
devices:
- /dev/ttyUSB0:/dev/ttyUSB0 # Expose USB inputs
- /dev/ttyUSB1:/dev/ttyUSB1 # Expose USB inputs
restart: always
privileged: true
network_mode: host
I'm receiving the same error whenever I try to upgrade or install from the YAML.
esphome: container_name: esphome image: esphome/esphome:latest volumes: - /home/curiosity/smart_home/data/esphome/:/config # Directory where home-assistant config files - /etc/localtime:/etc/localtime:ro # Expose local time devices: - /dev/ttyUSB0:/dev/ttyUSB0 # Expose USB inputs - /dev/ttyUSB1:/dev/ttyUSB1 # Expose USB inputs restart: always privileged: true network_mode: host
SOOOO..
I DID A VERY BAD THING BUT IT WORKED....
If you are docker user
docker exec -it esphome /bin/bash
/usr/bin/python3 -m pip install -U platformio --break-system-packages
A similar issue popped up here after upgrading from 2024.4.2 to 2024.5.2, but on Raspberry Pi 4 and aarch64 instead of x86_64. Running ESPHome in Docker on an Ubuntu 20.04 64-bit Raspberry Pi 4.
INFO Installing platformio/tool-scons @ ~4.40700.0
UnknownPackageError: Could not find the package with 'platformio/tool-scons @ ~4.40700.0' requirements for your system 'linux_aarch64'
YMMV, but I finally found a workaround.
My docker-compose.yaml
has this mount:
volumes:
- /home/homeassistant/esphome/config:/config
After removing the .esphome/platformio
directory in the config folder it all started working.
rm -rf /home/homeassistant/esphome/config/.esphome/platformio
The problem
Hi everyone ! I have been using esphome in my Linux desktop with docker for years without problems, all versions >2024 give me this programming error the latest version 2023.12.9 works. below a sample yaml code, but the error appears in all my devices if I use platform >2024
Which version of ESPHome has the issue?
2024.x.x
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
linux_x86_64'
What platform are you using?
ESP8266
Board
esp8266, esp32
Component causing the issue
UnknownPackageError: Could not find the package with 'platformio/tool-scons @ ~4.40600.0'
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response