esphome device firmware compilation issue #262

Closed
opened 2022-02-06 21:51:10 +01:00 by eruditas · 6 comments
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 579, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 897, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 788, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (aioesphomeapi 10.8.1 (/usr/lib/python3.9/site-packages), Requirement.parse('aioesphomeapi==10.6.0'), {'esphome'})
sudo emerge -av aioesphomeapi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/aioesphomeapi-10.8.1::HomeAssistantRepository  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
```python Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 579, in _build_master ws.require(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 897, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 788, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (aioesphomeapi 10.8.1 (/usr/lib/python3.9/site-packages), Requirement.parse('aioesphomeapi==10.6.0'), {'esphome'}) ``` ```bash sudo emerge -av aioesphomeapi These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-python/aioesphomeapi-10.8.1::HomeAssistantRepository USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB ```
Owner

which version?
do an eix -I esphome

which version? do an eix -I esphome
Author
eix -I esphome
[I] acct-group/esphome [1]
     Available versions:  0{xpak}
     Installed versions:  0{xpak}(01:35:03 AM 12/19/2021)
     Description:         ESPHome Dashboard group

[I] acct-user/esphome [1]
     Available versions:  0{xpak}
     Installed versions:  0{xpak}(01:35:34 AM 12/19/2021)
     Description:         ESPHome Dashboard User

[I] dev-embedded/esphome [1]
     Available versions:  2021.11.4 2021.12.3 2022.1.2 2022.1.3{xpak} **9999*l {+server test PYTHON_SINGLE_TARGET="python3_8 python3_9 python3_10"}
     Installed versions:  2022.1.3{xpak}(04:51:37 PM 02/04/2022)(server -test PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10")
     Homepage:            https://github.com/esphome/esphome https://pypi.org/project/esphome/
     Description:         Make creating custom firmwares for ESP32/ESP8266 super easy.

[I] dev-embedded/esphome-dashboard [1]
     Available versions:  20210908.0 20211021.0 20211021.1 20211211.0 20220116.0{xpak} {test PYTHON_TARGETS="python3_8 python3_9 python3_10"}
     Installed versions:  20220116.0{xpak}(12:58:57 PM 01/27/2022)(-test PYTHON_TARGETS="python3_9 -python3_8 -python3_10")
     Homepage:            https://github.com/esphome/dashboard https://pypi.org/project/esphome-dashboard/
     Description:         ESPHome dashboard

[I] dev-python/aioesphomeapi [1]
     Available versions:  9.1.5 10.2.0 10.6.0 10.8.1{xpak} {test PYTHON_TARGETS="python3_8 python3_9 python3_10"}
     Installed versions:  10.8.1{xpak}(02:17:57 PM 01/30/2022)(-test PYTHON_TARGETS="python3_9 -python3_8 -python3_10")
     Homepage:            https://github.com/esphome/aioesphomeapi https://esphome.io/ https://pypi.org/project/aioesphomeapi/
     Description:         Python API for interacting with ESPHome devices.

[1] "HomeAssistantRepository" /usr/portage/homeassistant
```bash eix -I esphome [I] acct-group/esphome [1] Available versions: 0{xpak} Installed versions: 0{xpak}(01:35:03 AM 12/19/2021) Description: ESPHome Dashboard group [I] acct-user/esphome [1] Available versions: 0{xpak} Installed versions: 0{xpak}(01:35:34 AM 12/19/2021) Description: ESPHome Dashboard User [I] dev-embedded/esphome [1] Available versions: 2021.11.4 2021.12.3 2022.1.2 2022.1.3{xpak} **9999*l {+server test PYTHON_SINGLE_TARGET="python3_8 python3_9 python3_10"} Installed versions: 2022.1.3{xpak}(04:51:37 PM 02/04/2022)(server -test PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10") Homepage: https://github.com/esphome/esphome https://pypi.org/project/esphome/ Description: Make creating custom firmwares for ESP32/ESP8266 super easy. [I] dev-embedded/esphome-dashboard [1] Available versions: 20210908.0 20211021.0 20211021.1 20211211.0 20220116.0{xpak} {test PYTHON_TARGETS="python3_8 python3_9 python3_10"} Installed versions: 20220116.0{xpak}(12:58:57 PM 01/27/2022)(-test PYTHON_TARGETS="python3_9 -python3_8 -python3_10") Homepage: https://github.com/esphome/dashboard https://pypi.org/project/esphome-dashboard/ Description: ESPHome dashboard [I] dev-python/aioesphomeapi [1] Available versions: 9.1.5 10.2.0 10.6.0 10.8.1{xpak} {test PYTHON_TARGETS="python3_8 python3_9 python3_10"} Installed versions: 10.8.1{xpak}(02:17:57 PM 01/30/2022)(-test PYTHON_TARGETS="python3_9 -python3_8 -python3_10") Homepage: https://github.com/esphome/aioesphomeapi https://esphome.io/ https://pypi.org/project/aioesphomeapi/ Description: Python API for interacting with ESPHome devices. [1] "HomeAssistantRepository" /usr/portage/homeassistant ```
Owner

downgrade aioesphomeapi to 10.6.0' as a workaround

emerge -tav =dev-python/aioesphomeapi-10.6.0

Will look into it tomorrow.

downgrade aioesphomeapi to 10.6.0' as a workaround emerge -tav =dev-python/aioesphomeapi-10.6.0 Will look into it tomorrow.
Author

dev-python/aioesphomeapi-10.8.1 is required by app-misc/homeassistant-min-2022.2.2-1
Don't want to downgrade all the packages. I'll just wait for the fix.

dev-python/aioesphomeapi-10.8.1 is required by app-misc/homeassistant-min-2022.2.2-1 Don't want to downgrade all the packages. I'll just wait for the fix.
Owner

you could edit esphome's constraints for now

/usr/lib/python3.9/site-packages/esphome-2022.2.0.dev0-py3.9.egg-info/requires.txt

and remove the version from aioesphomeapi

you could edit esphome's constraints for now /usr/lib/python3.9/site-packages/esphome-2022.2.0.dev0-py3.9.egg-info/requires.txt and remove the version from aioesphomeapi
Author
sudo -e /usr/lib/python3.9/site-packages/esphome-2022.1.3-py3.9.egg-info/requires.txt

changed aioesphomeapi==10.6.0 to aioesphomeapi==10.8.1

now firmware builds, but:

========================= [SUCCESS] Took 10.40 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of usage02.local
INFO  -> 172.20.30.109
INFO Uploading /etc/esphome/.esphome/build/usage02/.pioenvs/usage02/firmware.bin (447152 bytes)
INFO Compressed to 306717 bytes
Uploading: [============================================================] 100% Done...


INFO Waiting for result...
ERROR Error receiving acknowledge Update end: timed out

Firmware on the device has the new version, so not sure about this error.

```bash sudo -e /usr/lib/python3.9/site-packages/esphome-2022.1.3-py3.9.egg-info/requires.txt ``` changed `aioesphomeapi==10.6.0` to `aioesphomeapi==10.8.1` now firmware builds, but: ``` ========================= [SUCCESS] Took 10.40 seconds ========================= INFO Successfully compiled program. INFO Resolving IP address of usage02.local INFO -> 172.20.30.109 INFO Uploading /etc/esphome/.esphome/build/usage02/.pioenvs/usage02/firmware.bin (447152 bytes) INFO Compressed to 306717 bytes Uploading: [============================================================] 100% Done... INFO Waiting for result... ERROR Error receiving acknowledge Update end: timed out ``` Firmware on the device has the new version, so not sure about this error.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#262
No description provided.