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

 找回密码
 立即注册
查看: 638|回复: 1

[求助] esphome编译时报错

[复制链接]

3

主题

103

帖子

593

积分

高级会员

Rank: 4

积分
593
金钱
490
HASS币
0
发表于 2023-10-5 16:19:55 | 显示全部楼层 |阅读模式
编译内容:
esphome:
  name: esp8266-01s
  platform: ESP8266
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "88888888"

wifi:
  ssid: "Redmi_1A1A"
  password: "zx666888"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp8266-01S Fallback Hotspot"
    password: "88888888"

captive_portal:

编译时报错:
INFO Reading configuration /config/esphome/esp8266-01s.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/esp8266-01s
Processing esp8266-01s (board: esp01_1m; framework: arduino; platform: platformio/[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)
Library Manager: Installing Update
HTTPClientError: Please upgrade to the PlatformIO Core 6:
  File "/usr/local/lib/python3.7/dist-packages/platformio/builder/main.py", line 177:
    env.SConscript("$BUILD_SCRIPT")
  File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 591:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 280:
    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/scons-local-4.1.0/SCons/Util.py", line 658:
    return self.method(*nargs, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/platformio/builder/tools/platformio.py", line 62:
    env.ProcessProjectDeps()
  File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658:
    return self.method(*nargs, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/platformio/builder/tools/platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658:
    return self.method(*nargs, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/platformio/builder/tools/piolib.py", line 1062:
    project.install_dependencies()
  File "/usr/local/lib/python3.7/dist-packages/platformio/builder/tools/piolib.py", line 898:
    lm.install(spec)
  File "/usr/local/lib/python3.7/dist-packages/platformio/package/manager/_install.py", line 49:
    spec, silent=silent, skip_dependencies=skip_dependencies, force=force
  File "/usr/local/lib/python3.7/dist-packages/platformio/package/manager/library.py", line 86:
    force=force,
  File "/usr/local/lib/python3.7/dist-packages/platformio/package/manager/_install.py", line 99:
    pkg = self.install_from_registry(spec, search_filters, silent=silent)
  File "/usr/local/lib/python3.7/dist-packages/platformio/package/manager/_registry.py", line 88:
    packages = self.search_registry_packages(spec, search_filters)
  File "/usr/local/lib/python3.7/dist-packages/platformio/package/manager/_registry.py", line 135:
    return self.get_registry_client_instance().list_packages(filters=filters)[
  File "/usr/local/lib/python3.7/dist-packages/platformio/clients/registry.py", line 131:
    "get", "/v3/packages", params=params, cache_valid="1h"
  File "/usr/local/lib/python3.7/dist-packages/platformio/clients/http.py", line 145:
    data = self._parse_json_response(response)
  File "/usr/local/lib/python3.7/dist-packages/platformio/clients/http.py", line 160:
    raise HTTPClientError(message, response)
========================== [FAILED] Took 6.95 seconds ==========================

请教各位大佬,这是啥情况啊
回复

使用道具 举报

0

主题

6

帖子

528

积分

高级会员

Rank: 4

积分
528
金钱
522
HASS币
0
发表于 2023-10-6 17:27:55 | 显示全部楼层
升级esphome
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-27 11:04 , Processed in 0.229614 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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