Error when compiling: "Conflict: more than one library has been found by request..."

Hello,

Since a couple of day ago, anything I try to compile in HA ESPHome add-on fails; even an “empty” project, I mean, containing just the lines created by the Wizard, no code added, fails.

Add-on version is 1.15.3, seems to be up to date.

Message is:

Processing prueba (board: esp01_1m; framework: arduino; platform: [email protected])

HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:

  • framework-arduinoespressif8266 3.20704.0 (2.7.4)
  • tool-esptool 1.413.0 (4.13)
  • tool-esptoolpy 1.20800.0 (2.8.0)
  • toolchain-xtensa 2.40802.200502 (4.8.2)
    Looking for ESPAsyncWebServer-esphome library in registry
    Conflict: More than one library has been found by request {“name”: “ESPAsyncWebServer-esphome”, “requirements”: “1.2.7”}:
    ESPAsyncWebServer-esphome
    =========================
    Automatically chose the first available library (use --interactive option to make a choice)
    #ID: 12620
    Asynchronous HTTP and WebSocket Server Library for ESP8266 and ESP32

Keywords: http, async, websocket, webserver
Compatible frameworks: Arduino
Compatible platforms: Espressif 8266, Espressif 32
Authors: ESPHome Team

ESPAsyncWebServer-esphome

#ID: 6758
Asynchronous HTTP and WebSocket Server Library for ESP8266 and ESP32

Keywords: http, async, websocket, webserver
Compatible frameworks: Arduino
Compatible platforms: Espressif 8266, Espressif 32
Authors: ESPHome Team

LibraryManager: Installing id=12620 @ 1.2.7
UndefinedPackageVersion: Could not find a version that satisfies the requirement ‘1.2.7’ for your system ‘linux_aarch64’:
File “/usr/local/lib/python3.6/dist-packages/platformio/builder/main.py”, line 168:
env.SConscript("$BUILD_SCRIPT")
File “/root/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 597:
return _SConscript(self.fs, *files, **subst_kw)
File “/root/.platformio/packages/tool-scons/script/…/engine/SCons/Script/SConscript.py”, line 286:
exec(compile(scriptdata, scriptname, ‘exec’), call_stack[-1].globals)
File “/root/.platformio/platforms/espressif8266/builder/main.py”, line 238:
target_elf = env.BuildProgram()
File “/root/.platformio/packages/tool-scons/script/…/engine/SCons/Environment.py”, line 219:
return self.method(*nargs, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py”, line 62:
env.ProcessProjectDeps()
File “/root/.platformio/packages/tool-scons/script/…/engine/SCons/Environment.py”, line 219:
return self.method(*nargs, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py”, line 131:
project_lib_builder = env.ConfigureProjectLibBuilder()
File “/root/.platformio/packages/tool-scons/script/…/engine/SCons/Environment.py”, line 219:
return self.method(*nargs, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py”, line 1036:
project.install_dependencies()
File “/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py”, line 868:
lm.install(uri)
File “/usr/local/lib/python3.6/dist-packages/platformio/managers/lib.py”, line 281:
force=force,
File “/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py”, line 704:
pkg_dir = self._install_from_piorepo(name, requirements)
File “/usr/local/lib/python3.6/dist-packages/platformio/managers/lib.py”, line 119:
requirements or “latest”, util.get_systype()
========================== [FAILED] Took 7.75 seconds ==========================

Someone reported the same problem in 求助,esphome编译时,貌似版本发生冲突,所有的设备都无法编.. - 『HomeAssistant』综合讨论区 - 『瀚思彼岸』» 智能家居技术论坛 - Powered by Discuz!, posted 2 days ago.

Environment: HASS OS running on Raspberry Pi 4.

Rgds

EspHome 1.15.0 is from September 2020, definitely not up-to-date

Francis, you’re right, the add-on seems to have stopped offering updates - like a discontinued code, so it seemed to be the latest code. Uninstalling and installing the latest version (different numbering) has fiixed the problem.

Thnks

2 Likes

this solve my problem too
Thanks @Eroderick

sudo pip3 install esphome --upgrade fixed me up too. Thanks!