Hello, and please accept my apologies if the solution is obvious. I am compiling my first program under eclipse for the ESP32 and I got the following error:
00:10:29 **** Incremental Build of configuration Default for project main1 ****
bash C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py all
C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py: line 6: import: command not found
C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py: line 8: syntax error near unexpected token `('
C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py: line 8: `UNIX_PATH_RE = re.compile(r'(/[^ \'"]+)+')'
00:10:30 Build Finished (took 245ms)
I checked and the lines referred in the errors are:
from __future__ import print_function, division
import sys, subprocess, os.path, re
UNIX_PATH_RE = re.compile(r'(/[^ \'"]+)+')
Any help is very welcome.
C.
eclipse_make.py error
Re: eclipse_make.py error
Hi C,
If you have "bash" in the start of the make command in your Eclipse properties, change it to "python".
Eclipse is running 'bash' which is trying to interpret eclipse_make.py as a bash script not a Python program.bash C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py all
If you have "bash" in the start of the make command in your Eclipse properties, change it to "python".
Who is online
Users browsing this forum: No registered users and 82 guests