Upload to ESP8266 fails: {runtime.tools.esptool.path}/esptool: no such file or directory

I also ran into a similar issue. Here's the error message.
Flashing with command:{runtime.tools.esptool.path}/esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.SLAB_USBtoUART -ca 0x00000 -cf /var/folders/7w/pzykpcss4ds9dyhy1tl55q8m0000gp/T/arduino-create-agent3830049561/Untitled_2_jul31a.bin
Start command: fork/exec {runtime.tools.esptool.path}/esptool: no such file or directory

Hi @blue_whale1. Unfortunately there is currently a bug in Arduino Create Agent that makes it impossible to for macOS users to upload to ESP8266-based boards from Arduino Cloud:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

screenshot of Subscribe button

I apologize for any inconvenience this bug has caused.

Hopefully the Arduino Create Agent developers will fix the bug soon. Until then, you should use Arduino IDE instead of Arduino Cloud. The download links for Arduino IDE are listed here:

After installing Arduino IDE on your computer, follow the instructions here to add support to Arduino IDE for your ESP8266 board:

https://github.com/esp8266/arduino#installing-with-boards-manager

You can use Arduino IDE to develop and upload your Arduino Cloud IoT Thing sketch. Arduino IDE even has a convenient Arduino Cloud sketchbook integration that allows you to open any of the sketches from your Arduino Cloud account in Arduino IDE. You can edit the sketch code in Arduino IDE, upload the sketch to your board, and push any changes you made to the sketch back to your Arduino Cloud account. There is a tutorial for using this Cloud sketchbook feature of Arduino IDE here:

https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-cloud-sketch-sync/


Please let me know if you have any questions or problems using Arduino IDE.

Thank you for your response. I tried the IDE but i get an error message:
fork/exec /Users/user/Documents/Arduino/hardware/esp8266com/Arduino-master/tools/python3/python3: no such file or directory

Compilation error: fork/exec /Users/usmanwaziri7/Documents/Arduino/hardware/esp8266com/Arduino-master/tools/python3/python3: no such file or directory

You followed the wrong instructions for installing the "esp8266" boards platform. The "Using git version" instructions you followed are intended for very advanced users who want to contribute to the development work on the platform. This is a much more complex installation procedure that should not be used by normal users.

Please delete this folder from your computer:

/Users/usmanwaziri7/Documents/Arduino/hardware/esp8266com

:warning: Please be careful when deleting things from your computer. When in doubt, back up!


After that, very carefully follow the installation instructions here:

https://github.com/esp8266/arduino#installing-with-boards-manager

Installing with Boards Manager

Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).

  • Download and install Arduino IDE 1.x or 2.x
  • Start Arduino and open the Preferences window
  • Enter https://arduino.esp8266.com/stable/package_esp8266com_index.json into the File>Preferences>Additional Boards Manager URLs field of the Arduino IDE. You can add multiple URLs, separating them with commas.
  • Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).

:exclamation: When you get to the end of those instructions, the installation is complete. DO NOT continue on to follow any of the alternative installation instructions that come after that in the documentation.


After you have done that, try using the ESP8266 board with Arduino IDE once again. Hopefully this time it will work as expected.

Hello again @blue_whale1.

I have good news to share on this subject: The bug has been fixed and the fix is now released in version 1.6.1 of Arduino Cloud Agent. Arduino Cloud Agent will automatically self-update to the new version the next time you use Arduino Cloud while Arduino Cloud Agent is running.

Once the update has been completed, you can upload to ESP8266 boards from Arduino Cloud and the workaround of using Arduino IDE will no longer be necessary.

Please let us know if you still encounter any problems using Arduino Cloud.