eclipse_make.py error

caiogubel
Posts: 1
Joined: Tue May 15, 2018 7:14 am

eclipse_make.py error

Postby caiogubel » Tue May 15, 2018 7:19 am

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: eclipse_make.py error

Postby ESP_Angus » Tue May 15, 2018 7:42 am

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".

Who is online

Users browsing this forum: No registered users and 66 guests