Arduino 2.0 for Linux Manjaro

Could someone please help me?!! I'm a 73 year 'young guy' trying to get the IDE working on my laptop running Linux Manjaro XFCE. I tried 2.1, its buggy and causes uploads to stall freezing my whole screen. Version 1.18 (I think it is) doesn't recognise my nodemcu V3 keeps coming up with a python 3.7 error message.
I cannot for the life of me find how to install version 2.0 it automatically installs version 2.1!
Thanks

It will help us to help you if you posted the error messages.

I have some doubts that 2.0 will improve the situation compared to 2.1.

1 Like

Here is the verbose output which, unfortunately means nothing to me.

Arduino: 1.8.19 (Linux), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

/snap/arduino/85/arduino-builder -dump-prefs -logger=machine -hardware /snap/arduino/85/hardware -hardware /home/bjm/snap/arduino/85/.arduino15/packages -tools /snap/arduino/85/tools-builder -tools /snap/arduino/85/hardware/tools/avr -tools /home/bjm/snap/arduino/85/.arduino15/packages -built-in-libraries /snap/arduino/85/libraries -libraries /home/bjm/snap/arduino/current/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 -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_666130 -warnings=none -build-cache /tmp/arduino_cache_630737 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.python3.path=/home/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -verbose /snap/arduino/85/examples/01.Basics/Blink/Blink.ino
/snap/arduino/85/arduino-builder -compile -logger=machine -hardware /snap/arduino/85/hardware -hardware /home/bjm/snap/arduino/85/.arduino15/packages -tools /snap/arduino/85/tools-builder -tools /snap/arduino/85/hardware/tools/avr -tools /home/bjm/snap/arduino/85/.arduino15/packages -built-in-libraries /snap/arduino/85/libraries -libraries /home/bjm/snap/arduino/current/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 -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_666130 -warnings=none -build-cache /tmp/arduino_cache_630737 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/mkspiffs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.python3.path=/home/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/mklittlefs/3.1.0-gcc10.3-e5f9fec -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/bjm/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/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec -verbose /snap/arduino/85/examples/01.Basics/Blink/Blink.ino
Using board 'nodemcuv2' from platform in folder: /home/bjm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2
Using core 'esp8266' from platform in folder: /home/bjm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2
/home/bjm/snap/arduino/85/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /home/bjm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/mkbuildoptglobals.py /snap/arduino/85 10819 /tmp/arduino_build_666130 /tmp/arduino_build_666130/core/build.opt /snap/arduino/85/examples/01.Basics/Blink/Blink.ino.globals.h /home/bjm/snap/arduino/85/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/CommonHFile.h
/home/bjm/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).

This is just a guess:
It says:

Try installing/updating python.

@onearmbj did you possibly install arduino with the snap store (it's the same if you did it from the shell with sudo snap install arduino)?

If you did (as I did) then arduino is installed in a sandbox, separated from your system, for security.
Due to that, it has its own, sandboxed installation of python, and it is python3.6. You might have on your regular system python3.8 or even newer - arduino wouldn't see it.

The reason you need the v3.7 is that (most likely) you're trying to use the esp8266 module and it demands the v3.7 version.

Now, question is how update that sandboxed version of python3.6... I don't know it yet.
If you do snap info arduino you'll get some general tips for that installation, but those didn't help to me.
There's a mention of using the arduino.pip install ..., but I do not know can I or how could for example use that to actually update the python3.6.

Also, there's a bug reported for the snap version, in here: [Bug]: Python 3.6 problem with some library's · Issue #33 · snapcrafters/arduino · GitHub

1 Like

@onearmbj I managed to get the compiling to work (with at least some testing script) after downgrading from esp8266 v3.1.2 to v3.0.2 - that version doesn't demand the usage of python v3.7

So, Arduino -> Tools/Board/Board Manager -> find & click esp8266, select the v3.0.2 and install it.

2 Likes

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