# Esptool.exe not recognized

**URL:** https://forum.xod.io/t/esptool-exe-not-recognized/6618
**Category:** XOD Programming Questions
**Created:** [August 7, 2023, 7:39pm UTC](https://forum.xod.io/t/esptool-exe-not-recognized/6618 "2023-08-07T19:39:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![idhoworth](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@idhoworth](https://forum.xod.io/u/idhoworth)
#### Post date: [August 7, 2023, 7:39pm UTC](https://forum.xod.io/t/esptool-exe-not-recognized/6618/1 "2023-08-07T19:39:59Z")

</div>

After doing a package update compile fails and i get this message ‘/esptool.exe’ is not recognized as an internal or external command, operable program or batch file.  
Any ideas anyone?

---

<div class="post-metadata">

### Author: ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)
#### Post date: [August 9, 2023, 10:03am UTC](https://forum.xod.io/t/esptool-exe-not-recognized/6618/2 "2023-08-09T10:03:25Z")

</div>

You may be able to fix this problem by reinstalling the affected esp package. Close the XOD IDE and then browse to the packages directory on your computer. On my mac the packages directory is located here:  
`/Users/matt/xod/ __packages__ /packages`

If you are on windows it will probably be something like:  
`C:\Users\username\xod\ __packages__ \packages`

Delete the directory for the affected package. This will either be **esp8266** or **esp32**.

Restart the XOD IDE and when you deploy your patch, the esp package should be reinstalled.

I’ve not encountered this problem before, so I can’t promise that the instructions above will solve the problem. Let us know how you get on.

---

<div class="post-metadata">

### Author: ![idhoworth](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@idhoworth](https://forum.xod.io/u/idhoworth)
#### Post date: [August 9, 2023, 12:42pm UTC](https://forum.xod.io/t/esptool-exe-not-recognized/6618/3 "2023-08-09T12:42:46Z")

</div>

Thanks Matt for your reply, I solved the problem late yesterday, when I updated the packages and tools it would appear that the update expects an updated version of esptools.exe, my version was 4.2.1 in the 4.2.1 sub directory of the esp\_py directory. After the packages update the compiler no longer uses the 4.2.1 directory. I created a 4.5.1 directory and moved esp tools.exe into it and now all is well.

Ian.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [September 8, 2023, 12:42pm UTC](https://forum.xod.io/t/esptool-exe-not-recognized/6618/4 "2023-09-08T12:42:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
