ESPHome Compile error message

Hi,

Has anyone seen the following error message when compiling in ESPHome?:

PackageManager: Installing tool-esptool @ <2
Warning! Package Mirror: The ‘sha1’ sum ‘e15fba5accf70d9c1574c47055ee9aedc0c3fe1c’ of downloaded file ‘tool-esptool-linux_armv6l-1.413.0.tar.gz’ is not equal to remote ‘bdfd4890e232df1876df63c8e676b12119e89c9f’
Looking for another mirror…
Error: Could not install ‘tool-esptool’ with version requirements ‘<2’ for your system ‘linux_armv7l’.

I’ve searched widely and still don’t understand the error message.
Running ESPHone V1.15.2 on a Raspbery PI 3B using latest raspberry OS.

Any pointers really appreciated

I got the same error. Got no solution so far.

@martinrbrown71 try upgrading platformio to the latest version (5.0.1 appears on my os) with this command:

pip3 install --upgrade platformio

To be sure, I also deleted ~/.platformio/packages folder, and made a clean build / upload from the dashboard. There will be some error and warning messages, but it worked for me.

rm -rf ~/.platformio/packages

I got the same error with the exact same hashes on Raspbian Buster on a RPi 3. :frowning:

Thank you, I will try this.

helps - thanks!

1 Like

Old thread revoked.
Updated th the ESPhome to the lastest one and boing

Library Manager: Installing adafruit/Adafruit-MLX90614-Library
Warning! Could not find the package with ‘adafruit/Adafruit-MLX90614-Library’ requirements for your system ‘linux_armv7l’

haven’t modified my yaml at all. Still contains the following lines in the esphome: section
includes:
- custom/mlx90614.h
libraries:
- adafruit/Adafruit-MLX90614-Library

and of couse the file within the custom folder does exist.

and idea whats wrong now?

afaik I can’t use pip3 on hass.os or am I wrong here?

I am experiencing the same problem, the pip3 install --upgrade platformio will not work on my HAOS:

[core-ssh ~]$ pip3 install --upgrade platformio
-bash: pip3: command not found

ESPHome: 1.15.3
HACore: 2023.1.7
Supervisor: 2022.12.1
Operating: System 9.4
Frontend: 20230110.0 - latest
Hardware: rpi4 32bit

Full build log with error:

INFO Reading configuration /config/esphome/Mancave ESPHome.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/mancave_esphome
Processing mancave_esphome (board: nodemcu-32s; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif32 3.10004.200129 (1.0.4) 
 - tool-esptoolpy 1.20600.0 (2.6.0) 
 - toolchain-xtensa32 2.50200.80 (5.2.0)
Looking for AsyncTCP-esphome library in registry
Conflict: More than one library has been found by request {"name": "AsyncTCP-esphome", "requirements": "1.1.1"}:
AsyncTCP-esphome
================
#ID: 12172
Automatically chose the first available library (use `--interactive` option to make a choice)
Asynchronous TCP Library for ESP32

Keywords: async, tcp
Compatible frameworks: Arduino
Compatible platforms: Espressif 32, LibreTuya
Authors: Hristo Gochkov

AsyncTCP-esphome
================
#ID: 6798
Asynchronous TCP Library for ESP32

Keywords: async, tcp
Compatible frameworks: Arduino
Compatible platforms: Espressif 32
Authors: Hristo Gochkov

LibraryManager: Installing id=12172 @ 1.1.1
UndefinedPackageVersion: Could not find a version that satisfies the requirement '1.1.1' 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/espressif32/builder/main.py", line 223:
    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 2.64 seconds ==========================

ok, never mind, I uninstalled and re-installed ESPHome and everything worked, apparently I had a very old version. Ignore.