New to ME Python needed in Compile

Hi all,
I'm trying to complie my code for a ESP8266 and I keep getting this error: "exec: "C:\Users\MJB\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3": file does not exist
Error compiling for board NodeMCU 1.0 (ESP-12E Module)."
I am not using python, just regular C++ for coding. I 'd appreciate some help to discover what I am doing wrong.
Unlike
`

//#include <ESP8266WiFi.h>
//#include <ESP8266NetBIOS.h>
#include <Wire.h>
#include <Adafruit_PCF8574.h>
//#include <Ethernet.h>
//#include <EthernetUdp.h>
#include <MCP23S17.h>
#include <SPI.h>
#define mcp1_CS 8
#define mcp2_CS 9
MCP23S17 mcp1(mcp1_CS);
MCP23S17 mcp2(mcp2_CS);
/*
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
};
IPAddress ip(192, 168, 15, 220);

unsigned int localPort = 50000;      // local port to listen on

// buffers for receiving and sending data
char packetBuffer[UDP_TX_PACKET_MAX_SIZE];  // buffer to hold incoming packet,
char ReplyBuffer[] = "acknowledged"; 
EthernetUDP Udp;
*/

void setup() {
pinMode(10, OUTPUT);
//Ethernet.init(15);
pinMode(mcp1_CS, OUTPUT);
pinMode(mcp2_CS, OUTPUT);
SPI.begin();  
mcp1.begin();
mcp2.begin();
mcp1.pinMode16(0);
mcp1.write16(0x0000);
mcp2.pinMode16(0);
mcp2.write16(0x0000);
}

void loop() {
 mcp1.write1(0, HIGH);
 mcp1.write1(8, HIGH);
 mcp2.write1(0, HIGH);
 mcp2.write1(8, HIGH);
}

The tool chain uses python for some things. You may need to install python or I have seen cases where a link called python3 can point to python but your best bet is just to install python.
On my Mac if I go into Terminal and type python3 I see this (I also don't know or use python)

On this Windows box, I have all the tools on a Dev Drive, which is drive E:, including the Arduino15 directory. Anyway, check what's in the directory mentioned. Here's the top

PS C:\> cd E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\
PS E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1> ls


    Directory: E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         8/21/2024  10:45 PM        1910440 libcrypto-1_1.dll
-a----         8/21/2024  10:45 PM         405672 libssl-1_1.dll
-a----         8/21/2024  10:45 PM         166416 pyexpat.pyd
-a----         8/21/2024  10:45 PM          97296 python.exe
-a----         8/21/2024  10:45 PM          58896 python3.dll
-a----         8/21/2024  10:45 PM          97296 python3.exe
-a----         8/21/2024  10:45 PM        3638800 python37.dll
-a----         8/21/2024  10:45 PM        2400177 python37.zip
-a----         8/21/2024  10:45 PM             79 python37._pth
-a----         8/21/2024  10:45 PM          95760 pythonw.exe
-a----         8/21/2024  10:45 PM          23056 select.pyd

Both python.exe and python3.exe. Same size. Same content

PS E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1> Get-ChildItem -File | Where-Object { $_.Name -match 'python3?.exe' } | Get-FileHash | Format-Table Path, Hash

Path                                                                Hash
----                                                                ----
E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\python.exe  4695914575F30E2FFE1807BF6A032EAEBE241809ABF97F65F161B7D0FF0031C9
E:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\python3.exe 4695914575F30E2FFE1807BF6A032EAEBE241809ABF97F65F161B7D0FF0031C9

Do you have both files? Also, the path you posted mixed both mostly Windows backslash \ and Linux+Mac forward slash / at the end, but that's usually not a problem. It's also missing .exe, which might matter.

The equivalent path worked for me

Compiling sketch...
"E:\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3"

kenb4,

neither of the two exe files are there in the 3.7.2-post1 directory.

what is the best way to get these files? I wonder if windows prevented these files from being installed?

Found the exe's in a zipped file and Pasted then into the directory where they were missisng. Now I get the following verbose from verifying the program:

"C:\Users\MJB\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" -I "C:\Users\MJB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/mkbuildoptglobals.py" "C:\Program Files\Arduino IDE\resources\app\lib\backend\resources" 10607 "C:\Users\MJB\AppData\Local\arduino\sketches\65DC048595FAFD7F9DD3C1CF2B475219" "C:\Users\MJB\AppData\Local\arduino\sketches\65DC048595FAFD7F9DD3C1CF2B475219/core/build.opt" "C:\Users\MJB\Documents\Arduino\ESP8266_myfirst/ESP8266_myfirst.ino.globals.h" "C:\Users\MJB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/CommonHFile.h"

exit status 0xc0000135

Compilation error: exit status 0xc0000135

Thanks for your response,

Unlike

To All,

I decided to remove the board 8266 from the board manager, after reading about Compilation error: exit status 0xc0000135,.

I reinstalled the esp8266 board package .

I can now compile my program , solved by reading other past posts.

Please mark your thread as "Solved" so that the state can be read in the topics list ...