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

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

[求助] 求助ESPHOME编译失败问题

[复制链接]

1

主题

1

帖子

41

积分

新手上路

Rank: 1

积分
41
金钱
40
HASS币
0
发表于 2020-9-8 18:26:02 | 显示全部楼层 |阅读模式
本人小白,第一次编译固件
不管是树莓派,虚拟机总是出现这个错误

WARNING You're using ESPHome with python 2. Support for python 2 is deprecated and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 or higher.INFO Reading configuration config/light.yaml...INFO Generating C++ source...INFO Compiling app...INFO Running:  platformio run -d config/lightProcessing light (board: nodemcuv2; framework: arduino; platform: [email protected])--------------------------------------------------------------------------------HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB FlashPACKAGES:  - framework-arduinoespressif8266 2.20502.0 (2.5.2)  - tool-esptool 1.413.0 (4.13)  - tool-esptoolpy 1.20600.0 (2.6.0)  - toolchain-xtensa 2.100100.200706 (10.1.0)Dependency Graph|-- <ESPAsyncTCP-esphome> 1.2.2|   |-- <ESP8266WiFi> 1.0|-- <ESP8266WiFi> 1.0|-- <ESP8266mDNS> 1.2|   |-- <ESP8266WiFi> 1.0|-- <ESPAsyncWebServer-esphome> 1.2.6|   |-- <ESPAsyncTCP-esphome> 1.2.2|   |   |-- <ESP8266WiFi> 1.0|   |-- <Hash> 1.0|   |-- <ESP8266WiFi> 1.0|-- <DNSServer> 1.1.1|   |-- <ESP8266WiFi> 1.0Compiling .pioenvs/light/src/esphome/components/api/api_connection.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_pb2.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_pb2_service.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_server.cpp.oIn file included from src/esphome/core/component.h:5,                 from src/esphome/components/api/proto.h:3,                 from src/esphome/components/api/api_pb2.h:3,                 from src/esphome/components/api/api_pb2.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std'  270 | using std::isinf;      |            ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std'  271 | using std::isnan;      |            ^~~~~In file included from src/esphome/core/component.h:5,                 from src/esphome/components/api/api_connection.h:3,                 from src/esphome/components/api/api_connection.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std'  270 | using std::isinf;      |            ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std'  271 | using std::isnan;      |            ^~~~~In file included from src/esphome/core/component.h:5,                 from src/esphome/components/api/proto.h:3,                 from src/esphome/components/api/api_pb2.h:3,                 from src/esphome/components/api/api_pb2_service.h:3,                 from src/esphome/components/api/api_pb2_service.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std'  270 | using std::isinf;      |            ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std'  271 | using std::isnan;      |            ^~~~~In file included from src/esphome/core/component.h:5,                 from src/esphome/components/api/api_server.h:3,                 from src/esphome/components/api/api_server.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std'  270 | using std::isinf;      |            ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std'  271 | using std::isnan;      |            ^~~~~In file included from src/esphome/components/api/api_server.h:12,                 from src/esphome/components/api/api_connection.h:7,                 from src/esphome/components/api/api_connection.cpp:1:src/esphome/components/api/homeassistant_service.h: In member function 'void esphome::api::HomeAssistantServiceCallAction<Ts>::play(Ts ...)':src/esphome/components/api/homeassistant_service.h:54:18: warning: invalid use of incomplete type 'class esphome::api::APIServer'   54 |     this->parent_->send_homeassistant_service_call(resp);      |                  ^~In file included from src/esphome/components/api/api_server.h:9,                 from src/esphome/components/api/api_connection.h:7,                 from src/esphome/components/api/api_connection.cpp:1:src/esphome/components/api/util.h:13:7: note: forward declaration of 'class esphome::api::APIServer'   13 | class APIServer;      |       ^~~~~~~~~In file included from src/esphome/components/api/api_server.h:12,                 from src/esphome/components/api/api_server.cpp:1:src/esphome/components/api/homeassistant_service.h: In member function 'void esphome::api::HomeAssistantServiceCallAction<Ts>::play(Ts ...)':src/esphome/components/api/homeassistant_service.h:54:18: warning: invalid use of incomplete type 'class esphome::api::APIServer'   54 |     this->parent_->send_homeassistant_service_call(resp);      |                  ^~In file included from src/esphome/components/api/api_server.h:9,                 from src/esphome/components/api/api_server.cpp:1:src/esphome/components/api/util.h:13:7: note: forward declaration of 'class esphome::api::APIServer'   13 | class APIServer;      |       ^~~~~~~~~*** [.pioenvs/light/src/esphome/components/api/api_pb2_service.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_connection.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_server.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_pb2.cpp.o] Error 1========================= [FAILED] Took 14.64 seconds =========================

回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

发表于 2020-9-9 18:12:06 | 显示全部楼层
你是怎么安装的ESPHome?怎么还用的是python2.x?

新手的话,推荐使用docker,不会缺东少西的,省心。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 03:40 , Processed in 0.314887 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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