Code Monkey home page Code Monkey logo

arduino's People

Contributors

merlijn-sebrechts avatar mmartinortiz avatar popey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino's Issues

Upgrade to Non-log4j-using Version:

What changes would you like?

The current snap version 1.8.15 does not appear to have the log4j mitigation. I believe that versions prior to 1.8.19 are vulnerable.

Any extra information?

No response

Odd Menu Behaviour

I'm using your IDE version 1.8.13 on Ubuntu 20.04 LTS. This is an upgrade from my Ubuntu 18 setup that was working fine with a manually installed IDE.
I'm unable to access the extreme top and bottom of the fly out menus - for example the 'Boards Manager..' option and the down arrow on the 'Examples' menu. Because of this I'm unable to select add on boards or see examples from installed libraries.

I have tried using version 1.8.12 with the same issue being present.
I have tried uninstalling your version and installing the one from arduino.cc - same issue.
I've tried making Java 8 available on my system, but I think that the IDE may supply it's own Java - it made no difference in any event, even though I think that the menuing system could be Java Swing.
I am at a loss to explain what's happening here.
Screenshot from 2020-07-15 15-36-33

Failed to connect to ESP8266

I am trying to connect the ESP2866 to arduino Mega, I installed the ESP2866 Board in the board manager.
I get the following error:

esptool.py v2.8
Serial port COM4
Connecting......................................____Traceback (most recent call last):
File "C:\Users\Alia Abdouli\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py", line 65, in
esptool.main(cmdline)
File "C:/Users/Alia Abdouli/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/Alia Abdouli/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
the selected serial port _
does not exist or your board is not connected

snap ut o

snap is no longer supported in ubuntu 20.04 now what ???

Themes!

By default, only the default theme is availiable. I was also unable to add aditional themes.

Either documentation around this or included themes support would be ideal. I like dark mode.

Won't install in Nvidia Jetpack 4.6

Attempting to install via the 'Software' application on Nvidia Jetpack 4.6 running on a Jetson Nano 2GB.

  • The first time I tried this it did a lot of downloading and installation steps; perhaps 7 minutes or so. It ended with the following popup message in the Software application
Unable to install arduino:
cannot perform the following tasks:
  • Now if I attempt to install I get that message after just about 20 seconds.
  • Unfortunately there are no tasks listed. Here is the syslog after the last boot and attempt to install:
Dec  4 12:35:05 diydonkeybot systemd[1]: Mounting Mount unit for arduino, revision 62...
Dec  4 12:35:05 diydonkeybot kernel: [   89.933517] squashfs: SQUASHFS error: Filesystem uses "lzo" compression. This is not supported
Dec  4 12:35:05 diydonkeybot mount[7375]: mount: /snap/arduino/62: wrong fs type, bad option, bad superblock on /dev/loop6, missing codepage or helper program, or other error.
Dec  4 12:35:05 diydonkeybot systemd[1]: snap-arduino-62.mount: Mount process exited, code=exited status=32
Dec  4 12:35:05 diydonkeybot systemd[1]: snap-arduino-62.mount: Failed with result 'exit-code'.
Dec  4 12:35:05 diydonkeybot systemd[1]: Failed to mount Mount unit for arduino, revision 62.
Dec  4 12:35:05 diydonkeybot systemd[1]: Reloading.
Dec  4 12:35:06 diydonkeybot systemd[1]: Starting resolvconf-pull-resolved.service...
Dec  4 12:35:06 diydonkeybot systemd[1]: Reloading.
Dec  4 12:35:06 diydonkeybot systemd[1]: Started resolvconf-pull-resolved.service.
Dec  4 12:35:06 diydonkeybot snapd[4247]: taskrunner.go:271: [change 4 "Mount snap \"arduino\" (62)" task] failed: systemctl command [start snap-arduino-62.mount] failed with exit status 1: Job for snap-arduino-62.mount failed.
Dec  4 12:35:06 diydonkeybot snapd[4247]: See "systemctl status snap-arduino-62.mount" and "journalctl -xe" for details.
Dec  4 12:35:08 diydonkeybot snapd[4247]: handlers.go:642: Reported install problem for "arduino" as aaf25394-5541-11ec-bd32-fa163e6cac46 OOPSID
Dec  4 12:35:43 diydonkeybot dbus-daemon[6306]: [session uid=1000 pid=6306] Activating service name='org.freedesktop.Notifications' requested by ':1.42' (uid=1000 pid=7509 comm="/usr/lib/chromium-browser/chromium-browser --enabl")
Dec  4 12:35:44 diydonkeybot dbus-daemon[6306]: [session uid=1000 pid=6306] Successfully activated service 'org.freedesktop.Notifications'
Dec  4 12:37:26 diydonkeybot snapd[4247]: api_snaps.go:307: Installing snap "arduino" revision unset
Dec  4 12:37:32 diydonkeybot systemd[1]: Reloading.
Dec  4 12:37:33 diydonkeybot systemd[1]: Starting resolvconf-pull-resolved.service...
Dec  4 12:37:33 diydonkeybot systemd[1]: Reloading.
Dec  4 12:37:33 diydonkeybot systemd[1]: Started resolvconf-pull-resolved.service.
Dec  4 12:37:33 diydonkeybot systemd[1]: Mounting Mount unit for arduino, revision 62...
Dec  4 12:37:33 diydonkeybot mount[8095]: mount: /snap/arduino/62: wrong fs type, bad option, bad superblock on /dev/loop6, missing codepage or helper program, or other error.
Dec  4 12:37:33 diydonkeybot systemd[1]: snap-arduino-62.mount: Mount process exited, code=exited status=32
Dec  4 12:37:33 diydonkeybot systemd[1]: snap-arduino-62.mount: Failed with result 'exit-code'.
Dec  4 12:37:33 diydonkeybot kernel: [  238.037740] squashfs: SQUASHFS error: Filesystem uses "lzo" compression. This is not supported
Dec  4 12:37:33 diydonkeybot systemd[1]: Failed to mount Mount unit for arduino, revision 62.
Dec  4 12:37:33 diydonkeybot systemd[1]: Reloading.
Dec  4 12:37:34 diydonkeybot systemd[1]: Starting resolvconf-pull-resolved.service...
Dec  4 12:37:34 diydonkeybot systemd[1]: Reloading.
Dec  4 12:37:34 diydonkeybot systemd[1]: Started resolvconf-pull-resolved.service.
Dec  4 12:37:34 diydonkeybot snapd[4247]: taskrunner.go:271: [change 5 "Mount snap \"arduino\" (62)" task] failed: systemctl command [start snap-arduino-62.mount] failed with exit status 1: Job for snap-arduino-62.mount failed.
Dec  4 12:37:34 diydonkeybot snapd[4247]: See "systemctl status snap-arduino-62.mount" and "journalctl -xe" for details.
Dec  4 12:37:34 diydonkeybot snapd[4247]: handlers.go:642: Reported install problem for "arduino" as already-reported
  • Here is my jetpack version:
$ sudo apt-cache show nvidia-jetpack
Package: nvidia-jetpack
Version: 4.6-b199
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.6-b199), nvidia-opencv (= 4.6-b199), nvidia-cudnn8 (= 4.6-b199), nvidia-tensorrt (= 4.6-b199), nvidia-visionworks (= 4.6-b199), nvidia-container (= 4.6-b199), nvidia-vpi (= 4.6-b199), nvidia-l4t-jetson-multimedia-api (>> 32.6-0), nvidia-l4t-jetson-multimedia-api (<< 32.7-0)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.6-b199_arm64.deb
Size: 29368
SHA256: 69df11e22e2c8406fe281fe6fc27c7d40a13ed668e508a592a6785d40ea71669
SHA1: 5c678b8762acc54f85b4334f92d9bb084858907a
MD5sum: 1b96cd72f2a434e887f98912061d8cfb
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Package: nvidia-jetpack
Version: 4.6-b197
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.6-b197), nvidia-opencv (= 4.6-b197), nvidia-cudnn8 (= 4.6-b197), nvidia-tensorrt (= 4.6-b197), nvidia-visionworks (= 4.6-b197), nvidia-container (= 4.6-b197), nvidia-vpi (= 4.6-b197), nvidia-l4t-jetson-multimedia-api (>> 32.6-0), nvidia-l4t-jetson-multimedia-api (<< 32.7-0)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.6-b197_arm64.deb
Size: 29356
SHA256: 104cd0c1efefe5865753ec9b0b148a534ffdcc9bae525637c7532b309ed44aa0
SHA1: 8cca8b9ebb21feafbbd20c2984bd9b329a202624
MD5sum: 463d4303429f163b97207827965e8fe0
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Unable to upload sketch Over The Air (ESP boards)

Following the conversation about OTA sketch upload in a previous issue, I can confirm that the snap is not allowing any upload to a network port.
In the case of the ESP32 and the ESP8266, the upload fails with the following error:

09:21:45 [ERROR]: Listen Failed

After having a look at the script doing the upload, and modifying the except block to show the undelying error, I can see that the error is caused by a missing permission when the script is calling socket.bind.

Based on this, I reckon the snap in missing the network-bind plug.

cannot open device: Permission denied

Hi,

Before opening this issue, I've read the "Readme" in the Snap Store and search in the Internet to see how to fix it. I'm running:

  • Ubuntu 20.04

  • Arduino IDE 1.8.13

  • Installed the Arduino IDE via the Ubuntu Software as Snap. I've checked the permissions of the Snap, all are enabled. Access serial port hardware drop down list only shows (disconnected)

  • Added my user to the dialout group.

  • Computer rebooted (several times). When I run the command groups I get myuser adm dialout cdrom sudo dip plugdev lpadmin lxd sambashare docker

  • Followed the steps to install my Arduino board (Arduino Uno Wifi rev2). Instructions detailed here

At the end, I reached to this comment. I've checked the udev rules created by the Snap, I see that the file is auto-generated, and I'm not sure how to modify it.

When I try to run a program, the output is:

Arduino: 1.8.13 (Linux), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

Sketch uses 1970 bytes (4%) of program storage space. Maximum is 48640 bytes.
Global variables use 28 bytes (0%) of dynamic memory, leaving 6116 bytes for local variables. Maximum is 6144 bytes.
An error occurred while uploading the sketch
avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145

Permissions of the device:

> ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 oct 24 17:47 /dev/ttyACM0

If I open the Serial Monitor, I can see the logs of the program that currently runs in the Arduino board.

If this is an issue with the udev rules, how can I help to debug it?

PD: In the past I used this board in the same laptop. It was with an instance of Ubuntu 18.04. Back then I installed the Arduino IDE from the official package at the Arduino site. I remember that I also had issues, but I did not find the notes I took to fix them.

Install plugin ESP8266FS

Hi,
I want to install the plugin ESP8266FS, however I am facing the "read-only" problem of the snap directory.
Is there any workaround?
Kr,

[Bug]: Can't find adafruit-nrfutil on path

What happened?

I'm using these board extensions: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
With the Adafruit nRF52 extension installed.
Target board: Nordic nRF52840 DK

Run this command to install a required programming utility:

arduino.pip install adafruit-nrfutil

When I click the "Verify" button I get this error:

Arduino: 1.8.15 (Linux), Board: "Nordic nRF52840 DK, S140 6.1.1, Level 0 (Release), Serial"

exec: "adafruit-nrfutil": executable file not found in $PATH
Error compiling for board Nordic nRF52840 DK.

What should have happened?

The app should be able to find the adafruit-nrfutil in the path.

Output of snap info $snap_name

name:      arduino
summary:   Write code and upload it to your Arduino-compatible board.
publisher: Merlijn Sebrechts
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-716683018)
  
  - 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: today at 15:55 CST
    channels:
    latest/stable: 1.8.15 2021-07-08 (61) 207MB -
    latest/candidate: ↑
    latest/beta: ↑
    latest/edge: 1.8.19 2021-12-29 (70) 204MB -
    installed: 1.8.15 (61) 207MB -


### Output of `snap connections $snap_name`

```shell
Interface                 Plug                     Slot                             Notes
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

snap    2.53+21.10ubuntu1
snapd   2.53+21.10ubuntu1
series  16
ubuntu  21.10
kernel  5.13.0-25-generic

Relevant log output

No response

Teminal output of app

No response

libusb 0.1.4 is missing in snap package

Error, while i'm trying to upload code to Digispark board:

micronucleus: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory

Searching libusb* on my computer (Ubuntu 20.04) gave me these locations:

  • /lib/i386-linux-gnu/libusb-0.1.so.4.4.4
  • /lib/i386-linux-gnu/libusb-0.1.so.4
  • /lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4
  • /lib/x86_64-linux-gnu/libusb-0.1.so.4
  • /snap/core/10185/lib/x86_64-linux-gnu/libusb-0.1.so.4
  • /snap/core/10185/lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4
  • /snap/core/10126/lib/x86_64-linux-gnu/libusb-0.1.so.4
  • /snap/core/10126/lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4

One of them must be used, but snap is blocking. Since it's not possible to link real directoryinto the snap filesystem, this must be fixed on your side.

Solved for me by installing not-a-snap version of Arduino IDE, and probably installing/reinstalling libusb-0.1-4 libusb-dev packages

[Enhancement]: Arduino IDE 2.0.x support

What changes would you like?

There is a new version of the Arduino IDE (v2.0.x). This version includes many improvements like Arduino Cloud integration and an improved UX.

The old Arduino v1.8.x will be eventually discontinued and no longer supported, so it would be great to have the new v2.0.x version snapped.

Any extra information?

No response

Esp8266 "the selected serial port _ does not exist or your board is not connected"

Hi,
I'm using a NodeMCU 1.0 on /dev/ttyUSB0 and when I try to Upload sketch I receive this error:

Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
  File "/home/razzo/snap/arduino/29/.arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "/home/razzo/snap/arduino/29/.arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool/esptool.py", line 2890, in main
    esp.connect(args.before)
  File "/home/razzo/snap/arduino/29/.arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool/esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
the selected serial port _
 does not exist or your board is not connected

I can't find a solution

Arduino IDE startup error

Summary

Arduino IDE will not startup on Ubuntu 20.04 with the following error:

$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/neo/snap/arduino/47/.arduino15
java.lang.InternalError: java.lang.reflect.InvocationTargetException
	at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
	at java.desktop/java.awt.Font.getFont2D(Font.java:497)
	at java.desktop/java.awt.Font$FontAccessImpl.getFont2D(Font.java:237)
	at java.desktop/sun.font.FontUtilities.getFont2D(FontUtilities.java:158)
	at java.desktop/sun.font.FontUtilities.getCompositeFontUIResource(FontUtilities.java:395)
	at java.desktop/com.sun.java.swing.plaf.gtk.PangoFonts.lookupFont(PangoFonts.java:204)
	at java.desktop/com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getGTKStyleFactory(GTKLookAndFeel.java:1582)
	at java.desktop/com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1546)
	at java.desktop/com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(GTKLookAndFeel.java:1439)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:586)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:633)
	at processing.app.Platform.setLookAndFeel(Platform.java:69)
	at processing.app.linux.Platform.setLookAndFeel(Platform.java:44)
	at processing.app.Base.<init>(Base.java:255)
	at processing.app.Base.main(Base.java:150)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:84)
	... 16 more
Caused by: java.lang.NullPointerException
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:107)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:719)
	at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:379)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:324)
	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)
	... 21 more

I get the error with revisions 41 (current stable) and 47 (current edge). It used to work with revision 32.

After googling the error a bit, it seems to be something fontconfig related, but I cannot try and fix it myself for the snap. Let me know if I can provide any more details.

Specs

$ snap --version
snap    2.47.1
snapd   2.47.1
series  16
ubuntu  20.04
kernel  5.4.0-52-generic
$ snap info arduino --color=always | grep "installed:"
installed:          1.8.13            (47) 149MB -
$ arduino --version
Picked up JAVA_TOOL_OPTIONS: 
Loading configuration...
Initializing packages...
Preparing boards...
Arduino: 1.8.13

[Bug]: port serial disconnected and > `sudo usermod -a -G dialout $USER` not works

What happened?

in snap arduino permissions Access serial port is disconnected.

jesus@jesus-HP-Laptop-15s-eq1xxx:~$ ls -l /dev | grep ACM does not return anything

jesus@jesus-HP-Laptop-15s-eq1xxx:~$ ls /dev/ttyUSB0
ls: can't access 'dev': File or directory does not exist

What should have happened?

Captura desde 2022-04-24 10-28-51

Output of snap info $snap_name

snap-id:      q7ex9QXSEs0gfmZHBPYtmSGSwjDTuYhF
tracking:     latest/stable
refresh-date: hoy a las 10:04 CEST
channels:
  latest/stable:    1.8.15 2021-07-08 (61) 207MB -
  latest/candidate: ↑                            
  latest/beta:      ↑                            
  latest/edge:      1.8.19 2021-12-29 (70) 204MB -
installed:          1.8.15            (61) 207MB -

Output of snap connections $snap_name

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

snap    2.55.3+22.04
snapd   2.55.3+22.04
series  16
ubuntu  22.04
kernel  5.15.0-25-generic

Relevant log output

No response

Teminal output of app

Picked up JAVA_TOOL_OPTIONS: 
Gtk-Message: 10:26:20.679: Failed to load module "canberra-gtk-module"

Unable to use python based tools with this snap

Description

I tried to compile an ESP32 sketch with the snap version of Arduino IDE, and got an error saying python wasn't in my PATH. But it is there.
I think this is due to snaps running in a sandbox environment.
See https://forum.arduino.cc/index.php?topic=568610.0 for another description of the issue.

Steps to reproduce

  1. Install Arduino IDE from Ubuntu software
  2. Add this URL https://dl.espressif.com/dl/package_esp32_index.json to the board manager additional URL list in Preferences (edit: added URL)
  3. Go to Tools, Board, Board manager, and look for esp32, and install it
  4. Select an ESP32 board (I used MH ET Live ESP32DevKIT)
  5. Open an example sketch for ESP32 (I used ESP32/AnalogOUT/LEDCSoftwareFade)
  6. Click verify, and the error appears in the console at the end.

Additional info

The esptool.py utility that is running at the end is used to flash the firmware onto the board, and uses python, but also requires the serial python package.

Cany use ports on Arduino IDE

Hi
Could someone help me, I have installed the Arduino IDE on my laptop running Linux Ubuntu, I got a message when I opened the IDE station that I would not be able to load any boards as I will not have permissions to use the USB ports?
I was told to run the following line in terminal " sudo usermod -a -G dialout
When I run this line I get an error message saying that "dialout" does not exist.
dose anyone have a work round for this issue.

Many thanks

Regus

[Bug]: Python 3.6 problem with some library's

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

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

snap    2.59.5
snapd   2.59.5
series  16
ubuntu  22.04
kernel  5.19.0-45-generic

Relevant log output

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

arduino.pip --version
pip 21.3.1 from /snap/arduino/85/lib/python3.6/site-packages/pip (python 3.6)

ESP32 CAM

I just can't figure out what I'm doing wrong. Can someone help me? I get this output:
esptool.py v2.6
Traceback (most recent call last):
Serial port /dev/ttyUSB2
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2959, in
Connecting...
An error occurred while uploading the sketch
_main()
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2952, in _main
main()
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 2653, in main
esp.connect(args.before)
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 460, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 418, in _connect_attempt
self._setDTR(False) # IO0=HIGH
File "/home/arthur/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 384, in _setDTR
self._port.setDTR(state)
File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 599, in setDTR
self.dtr = value
File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 469, in dtr
self._update_dtr_state()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 636, in _update_dtr_state
fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str)
IOError: [Errno 22] Invalid argument

Unable to use serial ports

Hi, I need a little help.
I tried a whole bunch of possibilities to fix my issue but nothing worked.
When starting the IDE with/without attached Arduino (nano MEGA 328P) on my Ubuntu 20.04.1 it is related to /dev/ttyS0.
And I'm not able to fix this issue. I already tried to do the commands on Issue #10 but it didn't worked.
I also tried to use the IDE 1.8.13 and the unstable 1.9.0-beta.

In the /dev/ folder there is also the ttyACM0 or ttyUSB0 missing.

So far I spend several hours on trying to fix this issue but I can't.

Has had anyone this problem and a solution?

Best regards
Pat

Unable to reach my arduino files in my USB drive (on Ubuntu)

hi.
I have an issue with the app.
When i want to open a project on my usb drive, Linux doesn't let me use the Arduino IDE instead of the notepad to open the file that I am looking for (see the first screenshot we can see that the Arduino IDE program doesn't appear (even if i scroll down the list))
Capture d’écran de 2021-02-13 10-21-41
Capture d’écran de 2021-02-13 10-24-29
Capture d’écran de 2021-02-13 10-24-47
Capture d’écran de 2021-02-13 10-25-01
(that's all the list that i have)

and when I am using the Arduino IDE, I can't access to my usb drive to save the .ino file into it (see the second screenshot).
Capture d’écran de 2021-02-13 10-26-44
(as you can see, my usb drive doesn't appear)

Does someone have the same problem than me ?
Does someone knows how to fix it ?

(sorry if you can't understand my message. I'm french and i need a few english improvements )

Load/make available the lastest Arduino 2.3.2 [Enhancement]:

What changes would you like?

Please update the site to include Arduino 2.3.2. I am unable to make Arduino install completely from other sources, and Arduino 1.8.1 doesn't seen to work very well on my machine.
HPz800 Opensuse Tumbleweed

Any extra information?

HPz800 Opensuse Tumbleweed

[Enhancement]: put the new arduino UI version into edge channel

What changes would you like?

I would love if you could provide the new arduino UI version inside the edge channel. I need it at work for many users and the snap is the best solution for this :)
Thanks and best regards

Any extra information?

No response

java.nio.file.AccessDeniedException when installing libraries

When I try to install a library through "Library Manager" (Tools->Manage Libraries) I get the following error

 /home/user/snap/arduino/7/Arduino/libraries/arduino_173950
java.lang.RuntimeException: java.nio.file.AccessDeniedException: /home/user/snap/arduino/7/Arduino/libraries/arduino_173950
	at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$4(LibraryManagerUI.java:248)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.nio.file.AccessDeniedException: /home/user/snap/arduino/7/Arduino/libraries/arduino_173950
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
	at java.nio.file.Files.createDirectory(Files.java:674)
	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
	at java.nio.file.Files.createDirectories(Files.java:767)
	at processing.app.helpers.FileUtils.createTempFolder(FileUtils.java:118)
	at processing.app.helpers.FileUtils.createTempFolder(FileUtils.java:106)
	at processing.app.helpers.FileUtils.createTempFolder(FileUtils.java:102)
	at cc.arduino.contributions.libraries.LibraryInstaller.performInstall(LibraryInstaller.java:169)
	at cc.arduino.contributions.libraries.LibraryInstaller.install(LibraryInstaller.java:125)
	at cc.arduino.contributions.libraries.LibraryInstaller.install(LibraryInstaller.java:117)
	at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$4(LibraryManagerUI.java:239)
	... 1 more

Snap cannot access to USB

Hello, I have STM32F103C8, I'm flashing over ST-LINK V2
When I flash over Arduino IDE (flatpak) it's alright, without any problem, but when I choose to use arduino (snap) than it's impossible to do that. I'd like to use snap, because it's seem to me better.

Info
Yes, I already used sudo usermod -a -G dialout $USER with restart, also snap connections | grep arduino is O.k with access to raw-usb, removable-media, unity7, wayland, x11 and more...

Yes, I already tried echo "SUBSYSTEM==\"usb\", MODE=\"0660\", GROUP=\"$(id -gn)\"" | sudo tee /etc/udev/rules.d/00-usb-permissions.rules udevadm control --reload-rules

So, I don't know what to do more...

Code in terminal (SNAP)

snap run arduino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/tasman/snap/arduino/50/.arduino15

(java:4298): Gtk-WARNING **: 23:17:01.781: Theme parsing error: gtk.css:1566:23: 'font-feature-settings' is not a valid property name

(java:4298): Gtk-WARNING **: 23:17:01.785: Theme parsing error: gtk.css:3616:25: 'font-feature-settings' is not a valid property name

(java:4298): Gtk-WARNING **: 23:17:01.786: Theme parsing error: gtk.css:4078:23: 'font-feature-settings' is not a valid property name

(java:4298): Gtk-WARNING **: 23:17:02.156: Theme parsing error: gtk.css:1566:23: 'font-feature-settings' is not a valid property name

(java:4298): Gtk-WARNING **: 23:17:02.160: Theme parsing error: gtk.css:3616:25: 'font-feature-settings' is not a valid property name

(java:4298): Gtk-WARNING **: 23:17:02.161: Theme parsing error: gtk.css:4078:23: 'font-feature-settings' is not a valid property name
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/snap/arduino/50/lib/arduino-core.jar) to field com.sun.java.swing.plaf.gtk.GTKLookAndFeel.styleFactory
WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sketch uses 12780 bytes (39%) of program storage space. Maximum is 32768 bytes.
Global variables use 2064 bytes (20%) of dynamic memory, leaving 8176 bytes for local variables. Maximum is 10240 bytes.
/home/tasman/snap/arduino/50/.arduino15/packages/stm32duino/tools/stm32tools/2021.3.18/linux/stlink_upload: line 7: lsusb: command not found
USB Status [unknown]
/home/tasman/snap/arduino/50/.arduino15/packages/stm32duino/tools/stm32tools/2021.3.18/linux/stlink/st-flash: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
/home/tasman/snap/arduino/50/.arduino15/packages/stm32duino/tools/stm32tools/2021.3.18/linux/stlink_upload: line 35: lsusb: command not found
/home/tasman/snap/arduino/50/.arduino15/packages/stm32duino/tools/stm32tools/2021.3.18/linux/stlink_upload: line 7: lsusb: command not found
USB Status [unknown]
Waiting for tty device  

 should now be available.

One screen is from flatpak and the other one with errors is from snap
flatpak
snap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.