Error compiling for board NodeMCU 1.0 (ESP-12E Module)

/snap/arduino/85/arduino-builder -dump-prefs -logger=machine -hardware /snap/arduino/85/hardware -hardware /home/bobby/snap/arduino/85/.arduino15/packages -tools /snap/arduino/85/tools-builder -tools /snap/arduino/85/hardware/tools/avr -tools /home/bobby/snap/arduino/85/.arduino15/packages -built-in-libraries /snap/arduino/85/libraries -libraries /home/bobby/snap/arduino/85/Arduino/libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10819 -build-path /tmp/arduino_build_132055 -warnings=none -build-cache /tmp/arduino_cache_533521 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mkspiffs.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mkspiffs-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.python3.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mklittlefs-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -verbose /home/bobby/Project/Arduino/nodemuc/nodemuc.ino
/snap/arduino/85/arduino-builder -compile -logger=machine -hardware /snap/arduino/85/hardware -hardware /home/bobby/snap/arduino/85/.arduino15/packages -tools /snap/arduino/85/tools-builder -tools /snap/arduino/85/hardware/tools/avr -tools /home/bobby/snap/arduino/85/.arduino15/packages -built-in-libraries /snap/arduino/85/libraries -libraries /home/bobby/snap/arduino/85/Arduino/libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10819 -build-path /tmp/arduino_build_132055 -warnings=none -build-cache /tmp/arduino_cache_533521 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mkspiffs.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mkspiffs-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.python3.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.mklittlefs-3.1.0-gcc10.3-e5f9fec.path=/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -verbose /home/bobby/Project/Arduino/nodemuc/nodemuc.ino
Using board 'nodemcuv2' from platform in folder: /home/bobby/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2
Using core 'esp8266' from platform in folder: /home/bobby/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2
/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /home/bobby/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/mkbuildoptglobals.py /snap/arduino/85 10819 /tmp/arduino_build_132055 /tmp/arduino_build_132055/core/build.opt /home/bobby/Project/Arduino/nodemuc/nodemuc.ino.globals.h /home/bobby/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/CommonHFile.h
/home/bobby/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/mkbuildoptglobals.py
Minimal supported version of Python is 3.7
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

I am using Ubuntu machine

I moved your topic to an appropriate forum category @bobby0bash.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @bobby0bash. As the message says, the ESP8266 boards platform you are using has a dependency on Python 3.7 or higher.

Normally it would be a fairly simple matter of installing the necessary version of Python. However, it is a little more difficult because you are using the 3rd party Snapcraft package of Arduino IDE 1.x. The problem is that Snap runs Arduino IDE 1.x in an isolated "sandbox", meaning that your globally installed version of Python can't be used by Arduino IDE:

I think the most simple solution would be to install the official package of Arduino IDE, which does not run in a "sandbox", and thus can use your system Python for the ESP8266 boards platform. The download links are listed on the "Software" page:


If for some reason you don't want to use the official Arduino IDE package, then the alternative solution would be to use an older version of the ESP8266 boards platform from before it was updated to require Python 3.7. I can provide instructions for doing that if needed, just let me know.

Thank you @ptillisch

I installed it from the Ubuntu app center.
and can you tell that another option also which is using the older version

OK, here you go:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "esp8266" entry. Click on it.
    A "Select version" dropdown will appear in the entry.
  4. Click on the "Select version" dropdown.
    It will expand.
  5. Select "3.0.2" from the menu.
  6. Click the "Install" button in the "esp8266" entry.
  7. Wait for the installation to finish.
  8. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.
1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.