Page 1 of 1

eclipse_make.py error

Posted: Tue May 15, 2018 7:19 am
by caiogubel
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.

Re: eclipse_make.py error

Posted: Tue May 15, 2018 7:42 am
by ESP_Angus
Hi C,
bash C:/msys32/home/Caio.Gubel/esp-idf/tools/windows/eclipse_make.py all
Eclipse is running 'bash' which is trying to interpret eclipse_make.py as a bash script not a Python program.

If you have "bash" in the start of the make command in your Eclipse properties, change it to "python".