arduino-esp32fs-plugin icon indicating copy to clipboard operation
arduino-esp32fs-plugin copied to clipboard

SPIFFS Error: esptool not found!

Open petrkoc opened this issue 5 years ago • 29 comments

Hello. The latest version of ESP32FS (file ESP32FS-1.0.zip dated 2019/01/15) does not work, showing error "SPIFFS Error: esptool not found!" when trying to upload data.

I am using Arduino IDE 1.8.8 and Arduino core installed through "Instructions for Windows" during this week.

petrkoc avatar Feb 23 '19 13:02 petrkoc

Same here. I noticed the file has the extension .java and not .jar. Not into java and jar but I'll do my research.

tnx me-no-dev and others for the great work you share!

pieterverhees avatar Feb 27 '19 08:02 pieterverhees

Okay, tried to compile from .java to .jar but it seems to lack some dependencies. Any help will be appreciated.

pieterverhees avatar Feb 27 '19 08:02 pieterverhees

Think is solved for me. Found it here: https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/

pieterverhees avatar Feb 27 '19 08:02 pieterverhees

More on this: the new version doen't work indeed! "SPIFFS Error: esptool not found!" To solve for now I used the older version and that one still worked!

pieterverhees avatar Feb 27 '19 08:02 pieterverhees

it seems like it doesn't work if you installed the toolchain via github. if you installed arduino-esp32 via the board manager, then it finds esptool.py without issues. so i think it has to do with where it assumes esptool.py resides...

this is on OSX, using IDE 1.8.5.

johnty avatar Mar 14 '19 20:03 johnty

Am on windows 7 with Arduino IDE 1.8.9 and had the same problem. Tried installing esptool via system wide python ("pip install ...") to no avail.

Seems like a path issue. In the Java-File, in line 276 and following, the tool determines the path to the ESP-tool platform-dependently to be platform.getFolder()+"/tools", esptoolCmd with esptoolCmd presumably resolving to esptool.exe on Windows.

Looking into the folder, there's just an esptool.py there which can be executed, of course. But, as the Arduino IDE plugin expects an *.exe, this doesn't work.

Luckily, there is the binary under the same folder in the esptool subfolder, so just copy the file platform.getFolder()+"/tools/esptool/esptool.exe --> platform.getFolder()+"/tools/esptool.exe next to the esptool.py python script.

Works for me :)

nouser2013 avatar Mar 16 '19 14:03 nouser2013

More on this: the new version doen't work indeed! "SPIFFS Error: esptool not found!" To solve for now I used the older version and that one still worked!

I used version 0.1 when I encountered this issue and it seems to work. For info, Arduino 1.8.7 on Win10 and ESP32 installed in boards manager with https://dl.espressif.com/dl/package_esp32_index.json

SimonMerrett avatar Apr 29 '19 15:04 SimonMerrett

[for win 10] after a long search i found two "tools" folders for esp32:

  1. C:\Users\[User Name]\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\tools and
  2. C:\Users\[User Name]\AppData\Local\Arduino15\packages\esp32\tools i had to copy the esptool.exe from a subfolder of the second, to the first mentioned folder :)

OR:

  • just search for esptool.exe, copy this file,
  • then search for esptool.py, go to it's containing folder, paste esptool.exe here. hint: a good tool for file search in win 10 is Everything

wasted an hour on this :'( but hope to save someone else some time ;)

zuqualla avatar Jun 03 '19 12:06 zuqualla

ES UNA BOSTA!!! NO ANDA NADA!! SOLO UN ITALIANO PUEE FABRICAR UNA BASURA TAN GRANDE!!! AVANZAN PARA ATRAS!! LA VERSION 1.6 ANDABA PERFECTA!! TODO TIENE ERRORES! EL FS.ZIP..EN LUGAR DE DESCOMPRIMIR UN JAR EJECUTABLE, DESCOMPRIME UN .JS (JAVASCRIPT) UN DESASTRE!!

mbenitez01 avatar Jun 19 '19 03:06 mbenitez01

In my case i came to know something really important, addon must be inside the Sketchbook folder that is set in Preferences tab, ie. sketchbook\tools\ESP8266FS\tool\esp8266fs.jar also take care of version of IDE and Addon if both are compatible with each others.

sairfan1 avatar Jun 22 '19 15:06 sairfan1

Solution

Windows 10 running esp32 devkit 1v running ardruino 1.8.9

Copy the file esptool.exe from C:\Users%USERNAME%\AppData\Local\Arduino15\packages\esp32\tools to C:\Users%USERNAME%\Documents\Arduino\hardware\espressif\esp32\tools

Darkcast avatar Jul 19 '19 16:07 Darkcast

I had loaded some of the tools sets from various manufacturer of esp8266 boards Heltech, etc and seem to have copies to esptools everywhere, Ardunio seems to become very confused and the tools no longer worked. Had to purge them all and reload slowly.

outoftrun avatar Sep 19 '19 11:09 outoftrun

a solution for OSX 10.12 Arduino 1.8.10

copy the folder and its content /Users/----/Documents/Arduino/hardware/heltec/esp32/tools/esptool to /Users/----/Documents/Arduino/hardware/heltec/esp32/tools/esptool_py

This is working for me. Background: On OSX the 'esptool' (without extension) is used. But the installation has placed it in esptool/esptool. Its was not possible for me to change this without breaking the system. Looking at the source you could see the the searchpath of /esptool.py/esptool is used even when no Python is used.

klkl140 avatar Jan 18 '20 09:01 klkl140

Met the same issue for Arduino IDE1.8.13. The project image can be upload successful but failed with "ESP32 sketch the data upload". It shows error message "mkspiffs not found" when used 1.0 version. After copy mkspiffs.exe to the right tools directory, it shows error message "esptool not found". After copy esptool.exe similar, it go on and see the SPIFFS info but failed with "SPIFFS failed.". Aha......... My last solution is to use v0.1 in tags instead and it works.

kevincshare avatar Aug 03 '20 05:08 kevincshare

Met the same issue for Arduino IDE1.8.13. The project image can be upload successful but failed with "ESP32 sketch the data upload". It shows error message "mkspiffs not found" when used 1.0 version. After copy mkspiffs.exe to the right tools directory, it shows error message "esptool not found". After copy esptool.exe similar, it go on and see the SPIFFS info but failed with "SPIFFS failed.". Aha......... My last solution is to use v0.1 in tags instead and it works.

kevincshare avatar Aug 03 '20 05:08 kevincshare

https://github.com/esp8266/arduino-esp8266fs-plugin/files/2936951/ESP8266FS.zip The above zip gets you past this error, however I an now getting : [SPIFFS] python : python.exe [SPIFFS] uploader : C:\Users\Praveen\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\tools\upload.py

Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640SPIFFS Upload failed!

praveen2k10 avatar Aug 06 '20 10:08 praveen2k10

Got the python issue resolved as well with https://github.com/esp8266/arduino-esp8266fs-plugin/releases/download/0.5.0/ESP8266FS-0.5.0.zip

praveen2k10 avatar Aug 06 '20 10:08 praveen2k10

Thank you all! I did the same as praveen2k10 and it works.

mytechnotalent avatar Aug 16 '20 15:08 mytechnotalent

On windows 10 with the files from github I had to copy esptool.exe from: \SKETCHBOOK\hardware\espressif\esp32\tools\esptool to: \SKETCHBOOK\hardware\espressif\esp32\tools

Then it worked.

spyder0069 avatar Nov 17 '20 21:11 spyder0069

I was also having the "esptool not found" problem with:

  • arduino-esp32fs-plugin v1.0
  • macOS Catalina (10.15.7)
  • ESP32 installed from github - not using Board Manager as described here
  • Arduino IDE 1.8.13

Reverting back to v0.1 of the plugin cleared up the problem. I don't have an environment set up that allows me to build the plugin, otherwise I'd try to find out more precisely what is going on. Are there instructions anywhere on setting up such an environment?

jpasqua avatar Nov 25 '20 04:11 jpasqua

Same here. Doesn't work on macOS Big Sur.

EDIT: This one worked fine: https://github.com/esp8266/arduino-esp8266fs-plugin/releases/download/0.5.0/ESP8266FS-0.5.0.zip

agordeev avatar Dec 31 '20 13:12 agordeev

Also on Win 10 & Arduino IDE 1.8.13 (clean Install & Libraries updated & boards fresh reinstalled) have the same error...

andres26263 avatar Jan 13 '21 18:01 andres26263

@andres26263 For Windows, the plugin searches for esptool.exe in: platform.getFolder() base path subfolders: /tools /tools/esptool_py /tools/esptool Then in values configured by installation PreferencesData.get() ... values of runtime.tools.esptool_py.path= runtime.tools.esptool.path=

You can test my variant of the plugin, it gives a bit more info where the tool is found. https://github.com/lorol/arduino-esp32fs-plugin

lorol avatar Jan 13 '21 19:01 lorol

@lorol Thank You for answer. I finally solved it, after 1 day of searching and trying, copying a newly redownloaded "esp8266fs.jar" in all "/tools" directory & subs. This because of Steph answer in https://rntlab.com/question/spiffs-error-esptool-not-found/ Actually I'm working on a 8266 project, so I could'nt try Your variant, sorry...

andres26263 avatar Jan 15 '21 02:01 andres26263

Simply move espTool.exe next to espTool.py work for me.

tignioj avatar Feb 01 '22 18:02 tignioj

Just move esptool.exe from "C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools\esptool" to "C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools"

ybchen2005 avatar Feb 28 '22 08:02 ybchen2005

I have the same issue. but I got the solution with this updated jar file.

https://github.com/esp8266/arduino-esp8 ... -0.4.0.zip

somBabu1996 avatar Sep 28 '22 09:09 somBabu1996

For arduino-esp32 2.0.6 in macOS, my resolve method is:

/usr/bin/pip3 install esptool
ln -s ~/Library/Python/3.9/bin/esptool.py ~/Library/Arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool.py

moononournation avatar Jan 23 '23 16:01 moononournation

Adding my 2cents worth... The only solution that worked for me (for LittleFS data file uploads) was to install version 1.0.1 from @lorol's repo (can found here).

Version 2.0.7 from the same repo wouldn't work. And this version didn't work either.

Apart from version 1.0.1 mentioned above, all the other versions I tried would either not work (due to the 'esptool not found' error) or corrupt the LittleFS partition even when they reported that the upload worked.

(And as I'm sure you're aware, this only works in Arduino IDE v1.x)

maddisondesigns avatar Jan 01 '24 16:01 maddisondesigns