Unable to Compile OOTB - Errors

Title says it all. Just installed and tried a simple project for Expressif. This is what I got:

Running on Raspberry PI3 on an isolated python environment. Any ideas?

INFO Reading configuration /home/esphome/config/test.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /home/esphome/config/esptest
Processing esptest (board: nodemcuv2; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB 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
Warning! Could not find the package with 'Update' requirements for your system 'linux_armv7l'
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
|   |-- <ESPAsyncTCP-esphome> 1.2.3
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <Wire> 1.0
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
Compiling .pioenvs/esptest/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/esptest/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/esptest/src/esphome/components/api/api_pb2_service.cpp.o
*** [.pioenvs/esptest/src/esphome/components/api/api_connection.cpp.o] sh: No such file or directory
Compiling .pioenvs/esptest/src/esphome/components/api/api_server.cpp.o
*** [.pioenvs/esptest/src/esphome/components/api/api_pb2.cpp.o] sh: No such file or directory
*** [.pioenvs/esptest/src/esphome/components/api/api_pb2_service.cpp.o] sh: No such file or directory
*** [.pioenvs/esptest/src/esphome/components/api/api_server.cpp.o] sh: No such file or directory
========================= [FAILED] Took 21.92 seconds =========================

No it doesn’t.

Where is your correctly formatted device configuration?

This is my test yaml

esphome:
  name: esptest
  platform: ESP8266
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: ""

wifi:
  ssid: ""
  password: ""

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Fallback Hotspot"
    password: "4B4evei39XeU"

captive_portal:

web_server:
  port: 80

font:
  - file: "fonts/comic.ttf"
    id: comic_font
    size: 20

i2c:
  sda: D1
  scl: D2

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.print(0, 0, id(comic_font), "Hello World!");

Also how did you install the PI3 ? (Raspbian ?) and ESPHome ? (via pip3 ?)

Yeah, I created an isolated Python3.8 environment and just did a pip3. When I created the project it downloaded lost of modules.

Interestingly, if I run the command build in ssh, it works, but creates the firmware in .pio directory, not .pioenv. I’m going to give that firmware a try, but seems the build chain works, but something environmental with ESPHome.

Something with the dashboard. Very odd. If I build from the webserver, I have the problem. The Command line is fine.

Which works for me, I prefer the command line over a web server.