/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
pert
February 27, 2024, 4:49pm
2
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:
opened 04:11PM - 25 Jun 23 UTC
bug
### What happened?
When you add the latest 8266 support from the IDE, you cant … compile anything for these family boards. That's happens because the snap use Python 3.6, and these library's require 3.7 or newest.
### What should have happened?
When you upload a new sketch using 8266 library
### Output of `snap info $snap_name`
```shell
name: arduino
summary: Write code and upload it to your Arduino-compatible board.
publisher: Snapcrafters✪
store-url: https://snapcraft.io/arduino
contact: https://github.com/snapcrafters/arduino/issues
license: GPL-2.0
description: |
Arduino is an open-source physical computing platform based on a simple I/O
board and a development environment that implements the Processing/Wiring
language. Arduino can be used to develop stand-alone interactive objects or
can be connected to software on your computer (e.g. Flash, Processing and
MaxMSP). The boards can be assembled by hand or purchased preassembled at
https://arduino.cc
**Setup**
In order to upload code an arduino board over USB, you need to add your
user to the `dialout` group. Open a terminal window, run the following
command and *reboot* your computer.
> `sudo usermod -a -G dialout $USER`
Now restart your computer and you're good to go!
If you have one of the following boards, you need to grant specific
permissions to your user for accessing directly the USB. This issue is more
detailed
[here](https://github.com/snapcrafters/arduino/issues/10#issuecomment-71668
3018)
- Arduino Uno WiFi Rev2, ATMEGA328
For granting this direct access:
echo "SUBSYSTEM==\"usb\", MODE=\"0660\", GROUP=\"$(id -gn)\"" | sudo tee
/etc/udev/rules.d/00-usb-permissions.rules
udevadm control --reload-rules
```
**Python 3 support**
This version of Arduino IDE runs in a sandbox for improved security and
stability. As a result, it does not have access to the Python libraries on
your device.
Python 3 and the `serial` library are installed inside of the sandbox so
they can be used by plugins. If a plugin needs additional Python 3
libraries, you can install them using the `arduino.pip` command. For
example, the following command installs the `requests` library inside of
the sandbox so the Arduino IDE can use it.
> `arduino.pip install requests`
Python 2 is currently not supported in this package because it reached end
of life on January 1st 2020. If you have hardware that _requires_ Python 2
support, please let us know.
**Are you having issues?**
Let us know by creating a new issue here:
https://github.com/snapcrafters/arduino/issues
commands:
- arduino
- arduino.pip
snap-id: q7ex9QXSEs0gfmZHBPYtmSGSwjDTuYhF
tracking: latest/stable
refresh-date: ayer a las 23:00 -03
channels:
latest/stable: 1.8.19 2022-12-04 (85) 205MB -
latest/candidate: ↑
latest/beta: 1.8.19 2022-12-04 (85) 205MB -
latest/edge: 1.8.19 2022-12-08 (91) 205MB -
installed: 1.8.19 (85) 205MB -
```
### Output of `snap connections $snap_name`
```shell
Interfaz Enchufe Ranura Notas
content[gnome-3-28-1804] arduino:gnome-3-28-1804 gnome-3-28-1804:gnome-3-28-1804 -
content[gtk-3-themes] arduino:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] arduino:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] arduino:sound-themes gtk-common-themes:sound-themes -
desktop arduino:desktop :desktop -
desktop-legacy arduino:desktop-legacy :desktop-legacy -
gsettings arduino:gsettings :gsettings -
home arduino:home :home -
network arduino:network :network -
network-bind arduino:network-bind :network-bind -
opengl arduino:opengl :opengl -
raw-usb arduino:raw-usb :raw-usb -
removable-media arduino:removable-media :removable-media -
serial-port arduino:serial-port - -
unity7 arduino:unity7 :unity7 -
wayland arduino:wayland :wayland -
x11 arduino:x11 :x11 -
```
### Output of `snap version`
```shell
snap 2.59.5
snapd 2.59.5
series 16
ubuntu 22.04
kernel 5.19.0-45-generic
```
### Relevant log output
```shell
Arduino:1.8.19 (Linux), Tarjeta:"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"
/home/z37a/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 compilando para la tarjeta NodeMCU 1.0 (ESP-12E Module).
```
### Teminal output of app
```shell
arduino.pip --version
pip 21.3.1 from /snap/arduino/85/lib/python3.6/site-packages/pip (python 3.6)
```
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.
I installed it from the Ubuntu app center.
and can you tell that another option also which is using the older version
system
Closed
August 25, 2024, 5:18pm
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.