Cannot build project in Eclipse due to Python installation
Posted: Fri Aug 10, 2018 8:02 am
I have been trying to get ESP-IDF up and running on my macOS 10.13.6 system. I have successfully installed all the pre-requisites and am able to deploy the examples that come along with the IDF using the Terminal, but now I need an IDE from where I can go and write my own code, but I have been unable to do so using Eclipse.
My system has anaconda3 installed which I think is the source of the problem
returns:
The default python executable in Terminal is the first one (anaconda3)
Even when I make my project from the Terminal I have to change Python2 Interpreter under SDK tool Configuration to python2 from python, otherwise it throws all sorts of error, but after changing to python2 it compiles and executes just fine
Now in Eclipse, I have followed all the instructions from here http://esp-idf.readthedocs.io/en/v3.1-b ... setup.html. But when I use "python" under Python 2 Interpreter it throws this error "No module named serial.tools.list_ports", while when I use python2 it throws "python2: command not found". I have tried to modified my PYTHON_PATH in Eclipse to all the possibilities from "where python" and "where python2" but it does not work.
I have run both "pip install pyserial" and "pip2 install pyserial". But it just doesn't work. Any help would be appreciated as without building the Eclipse editor just looks horrible with all those red squiggly lines underneath the code.
My system has anaconda3 installed which I think is the source of the problem
Code: Select all
where python
Code: Select all
/anaconda3/bin/python
/usr/local/bin/python
/usr/bin/python
Even when I make my project from the Terminal I have to change Python2 Interpreter under SDK tool Configuration to python2 from python, otherwise it throws all sorts of error, but after changing to python2 it compiles and executes just fine
Now in Eclipse, I have followed all the instructions from here http://esp-idf.readthedocs.io/en/v3.1-b ... setup.html. But when I use "python" under Python 2 Interpreter it throws this error "No module named serial.tools.list_ports", while when I use python2 it throws "python2: command not found". I have tried to modified my PYTHON_PATH in Eclipse to all the possibilities from "where python" and "where python2" but it does not work.
I have run both "pip install pyserial" and "pip2 install pyserial". But it just doesn't work. Any help would be appreciated as without building the Eclipse editor just looks horrible with all those red squiggly lines underneath the code.