Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By CARPP
#58914 Hi,
i installed the esp-open-sdk as described on their github page. Now i tried to compile the blinky-example (i also added the xtensa compiler to my PATH variable). I moved the blinky-folder to: /home/test/Desktop/opt/esp-open-sdk/ESP8266_NONOS_SDK_V2.0.0_16_08_10/blinky
If i type "make" i get:
Code: Select allesptool.py elf2image blinky
Traceback (most recent call last):
  File "/home/test/Desktop/opt/esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 26, in <module>
    import serial
ImportError: No module named serial
Makefile:7: recipe for target 'blinky-0x00000.bin' failed
make: *** [blinky-0x00000.bin] Error 1


Even though i installed pyserial via "pip install pyserial" and also via "sudo apt-get install python-serial". I am wondering, why it is still not working? I noticed, that there are two dist-packages directories for python, one in :
usr/lib/python2.7/dist-packages
and one in:
usr/local/lib/python2.7/dist-packages
So which folder should contain the pyserial files? Any help is very much appreciated :)