alexCajas / esp8266RTOSArduCore

This project delivers an Arduino core for the ESP8266_RTOS_SDK, a light version of FreeRTOS supported by espressif. Notably, it shares the same framework as the ESP32 Arduino core, ensuring compatibility with libraries designed for the ESP32 arduino core and advanced multitasking capabilities.
https://github.com/alexCajas/esp8266RTOSArduCore/
Apache License 2.0
12 stars 2 forks source link

"esp8266RTOS\1.0.3/tools/createPreproc.py", line 7 print(f"preCompile Build Path: {build_path}", file=sys.stderr) #3

Open gunt2551 opened 4 months ago

gunt2551 commented 4 months ago

Environment

Problem Description

When i verifying code(your example code on github) I got an error. I am unsure the "build_path" needs to be set at "Environment Variables" or is already set up on your code. where can i find the path?

I also tried with version 1.0.2 ,but I got the same error.

If this issue needs to be discussed on your community forum, please let me know.

File "C:\Users\user\AppData\Local\Arduino15\packages\esp8266RTOS\hardware\esp8266RTOS\1.0.3/tools/createPreproc.py", line 7 print(f"preCompile Build Path: {build_path}", file=sys.stderr) .....................................................................................^ SyntaxError: invalid syntax exit status 1 Error compiling for board ESP8266 Module.

Screenshot 2024-05-18 101829

alexCajas commented 3 months ago

Hi @gunt2551, after examining ther error message, I believe that the issue originates from your python version. Currently, I'm using 3.7.4. Normaly It woldn't be a problem, but sometimes there can be issues with backward compatibility. Could you try with this version and comment here if the problem persists?

gunt2551 commented 3 months ago

Thx @alexCajas. After changing the default Python version 2.7.18 called by "python" in the command line to 3.7.4 or 3.12.3, these versions can now run in the MSYS2 terminal. (Now, i use python 3.7.4 that the @alexCajas suggested me)

And when it runs in terminal, I need to fix the path from backslash (\) to forward slash (/) in the file that displayed the path in terminal before flashing (this process I need to do everytime when run the code)

Screenshot 2024-05-21 084419

and then it can flash successfully

This is for anyone who encountered the error.

raise SerialException("could not open port {!r}: {!r}".format(self.portstr,ctypes.WinError())) serial.serialutil.SerialException: could not open port 'COM7': WindowsError(5, 'Access is denied.') esptool.py failed with exit code 1

Close the Serial monitor and then run it again

image