libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
401 stars 59 forks source link

Compiler error: api_connection #216

Closed SaschaMuehl closed 10 months ago

SaschaMuehl commented 10 months ago

I bought an IR-RF-Wifi-Bridge from Tuya with a WB3S-Chipset: my Home Assistent community Post After installing LibreTiny ESP Home in Home Assistant (v2023.9.0). I get a compilation error during the installation process. I connected the Tuya device wirelessly because plugging it in didn't work at all. Neither via USB in my Raspbarry (respian) nor in my Windows 10 computer.

Below the compiler error. Can sbd help?, plz?

INFO ESPHome 2023.9.0-dev
INFO Reading configuration /config/libretuya-esphome/rf-ir-bridge.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing rf-ir-bridge (board: wb3s; framework: arduino; platform: https://github.com/kuba2k2/libretiny.git)
--------------------------------------------------------------------------------
LibreTiny: Creating a virtual environment for Python dependencies
LibreTiny: Installing Python dependencies
Collecting ltchiptool<5.0,>=4.5.1
  Downloading ltchiptool-4.8.0-py3-none-any.whl (180 kB)
Collecting bitstruct<9.0.0,>=8.1.1
  Downloading bitstruct-8.1.1-py2.py3-none-any.whl (8.1 kB)
Collecting prettytable<4.0.0,>=3.3.0
  Downloading prettytable-3.9.0-py3-none-any.whl (27 kB)
Collecting pyaes<2.0.0,>=1.6.1
  Downloading pyaes-1.6.1.tar.gz (28 kB)
Collecting zeroconf<1,>=0
  Downloading zeroconf-0.39.4-py3-none-any.whl (106 kB)
Collecting semantic-version<3.0.0,>=2.10.0
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting bk7231tools<2.0.0,>=1.5.1
  Downloading bk7231tools-1.5.2-py3-none-any.whl (30 kB)
Collecting importlib-metadata
  Downloading importlib_metadata-6.9.0-py3-none-any.whl (22 kB)
Collecting hexdump<4.0,>=3.3
  Downloading hexdump-3.3.zip (12 kB)
Collecting xmodem<0.5.0,>=0.4.6
  Downloading xmodem-0.4.7-py3-none-any.whl (35 kB)
Collecting py-datastruct<2.0.0,>=1.0.0
  Downloading py_datastruct-1.0.0-py3-none-any.whl (28 kB)
Collecting colorama<0.5.0,>=0.4.5
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting click<9.0.0,>=8.1.3
  Downloading click-8.1.7-py3-none-any.whl (97 kB)
Collecting requests<3.0.0,>=2.31.0
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)
Collecting pyserial<4.0,>=3.5
  Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.12-py2.py3-none-any.whl (34 kB)
Collecting idna<4,>=2.5
  Downloading idna-3.6-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
Collecting urllib3<3,>=1.21.1
  Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
Collecting async-timeout>=4.0.1
  Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting ifaddr>=0.1.7
  Downloading ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting zipp>=0.5
  Downloading zipp-3.17.0-py3-none-any.whl (7.4 kB)
Using legacy 'setup.py install' for hexdump, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyaes, since package 'wheel' is not installed.
Installing collected packages: zipp, wcwidth, urllib3, pyserial, py-datastruct, ifaddr, idna, charset-normalizer, certifi, async-timeout, zeroconf, xmodem, semantic-version, requests, pyaes, prettytable, importlib-metadata, hexdump, colorama, click, bk7231tools, bitstruct, ltchiptool
    Running setup.py install for pyaes: started
    Running setup.py install for pyaes: finished with status 'done'
    Running setup.py install for hexdump: started
    Running setup.py install for hexdump: finished with status 'done'
Successfully installed async-timeout-4.0.3 bitstruct-8.1.1 bk7231tools-1.5.2 certifi-2023.11.17 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 hexdump-3.3 idna-3.6 ifaddr-0.2.0 importlib-metadata-6.9.0 ltchiptool-4.8.0 prettytable-3.9.0 py-datastruct-1.0.0 pyaes-1.6.1 pyserial-3.5 requests-2.31.0 semantic-version-2.10.0 urllib3-2.1.0 wcwidth-0.2.12 xmodem-0.4.7 zeroconf-0.39.4 zipp-3.17.0
HARDWARE: BK7231T 120MHz, 256KB RAM, 1.03MB Flash
 - framework-arduino-api @ 2022.8.24+sha.237b10a 
 - framework-beken-bdk @ 0.0.0+v2021.06.07.sha.6491b8c 
 - library-flashdb @ 1.2.0+sha.d5c892f 
 - library-freertos @ 9.0.0+sha.95cc959 
 - library-freertos-port @ 2023.5.23+sha.a917d93 
 - library-lwip @ 2.1.3-bdk+sha.4ee4d34 
 - library-printf @ 6.1.0+sha.28a79bd 
 - library-uf2ota @ 5.0.0+sha.f955412 
PLATFORM VERSIONS:
 - libretiny @ 1.4.1+sha.9b8e00c
 - ltchiptool @ 4.8.0
CUSTOM OPTIONS:
 - fw_name = esphome
 - fw_version = 2023.9.0-dev
Dependency Graph
|-- noise-c @ 0.1.4
**Compiling /data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_connection.cpp.o
sh: 1: arm-none-eabi-g++: not found
Compiling /data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: arm-none-eabi-g++: not found
Compiling /data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_pb2.cpp.o
sh: 1: arm-none-eabi-g++: not found
Compiling /data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_pb2_service.cpp.o
*** [/data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_connection.cpp.o] Error 127
*** [/data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [/data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_pb2.cpp.o] Error 127
sh: 1: arm-none-eabi-g++: not found
*** [/data/rf-ir-bridge/.pioenvs/rf-ir-bridge/src/esphome/components/api/api_pb2_service.cpp.o] Error 127**
========================= [FAILED] Took 38.23 seconds =========================
kuba2k2 commented 10 months ago

Please install the official ESPHome add-on (as said in this post). LibreTiny is officially supported in ESPHome since v2023.9.0, there's no need for the forked version.