『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2259|回复: 6

[经验分享] 求助,esphome编译时,貌似版本发生冲突,所有的设备都无法编..

[复制链接]

4

主题

42

帖子

496

积分

中级会员

Rank: 3Rank: 3

积分
496
金钱
454
HASS币
0
发表于 2021-11-27 22:04:02 | 显示全部楼层 |阅读模式
本帖最后由 mmtzwyd 于 2021-11-27 22:06 编辑

INFO Reading configuration /config/esphome/kg_zhuwei.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/kg_zhuwei
Processing kg_zhuwei (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
=========================
#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
Automatically chose the first available library (use `--interactive` option to make a choice)
=========================
#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_armv7l':
  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 4.36 seconds ==========================
回复

使用道具 举报

4

主题

42

帖子

496

积分

中级会员

Rank: 3Rank: 3

积分
496
金钱
454
HASS币
0
 楼主| 发表于 2021-11-27 22:07:05 | 显示全部楼层
关键部分应该出错是在这里
LibraryManager: Installing id=12620 @ 1.2.7
UndefinedPackageVersion: Could not find a version that satisfies the requirement '1.2.7' for your system 'linux_armv7l':

请问怎么搞啊?
回复

使用道具 举报

0

主题

75

帖子

719

积分

高级会员

Rank: 4

积分
719
金钱
644
HASS币
0
发表于 2021-11-27 22:29:58 | 显示全部楼层
linux_armv7l你这是手机上安装的啊  建议电脑安装esphome  
回复

使用道具 举报

4

主题

42

帖子

496

积分

中级会员

Rank: 3Rank: 3

积分
496
金钱
454
HASS币
0
 楼主| 发表于 2021-11-28 08:10:49 | 显示全部楼层
ssl12281982 发表于 2021-11-27 22:29
linux_armv7l你这是手机上安装的啊  建议电脑安装esphome

没啊,我是在树莓派4b上装的esphome啊
回复

使用道具 举报

3

主题

321

帖子

2897

积分

论坛积极会员

积分
2897
金钱
2576
HASS币
10
发表于 2021-11-29 14:58:00 | 显示全部楼层
arm版的就是更新比较慢吧
回复

使用道具 举报

4

主题

42

帖子

496

积分

中级会员

Rank: 3Rank: 3

积分
496
金钱
454
HASS币
0
 楼主| 发表于 2021-12-30 11:33:12 | 显示全部楼层
tcwj2008 发表于 2021-11-29 14:58
arm版的就是更新比较慢吧

现在又自动变好了.
回复

使用道具 举报

4

主题

42

帖子

496

积分

中级会员

Rank: 3Rank: 3

积分
496
金钱
454
HASS币
0
 楼主| 发表于 2022-2-28 13:24:53 | 显示全部楼层
现在已经更换到X64平台了,运行稳定良好.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 06:25 , Processed in 0.049979 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表