Fresh install of Arduino IDE 2.0 (Beta 5) on Linux Mint 20.1
Loaded the espressif ESP32 boards and selected ESP32 Dev Board, plugged in actual board and it seems to be detected OK.
Loaded a basic 'Blink' script from the Examples.
Compile fails with the following error
Error: Request compile failed with message: 2 UNKNOWN: exec: "python": executable file not found in $PATH
From the Terminal, typing 'python' gets 'Command not found' but typing 'python3' successfully loads python 3.8.5.
Is there a fix that will not mess with my other apps?
Oh dear, what a tale. Here goes.
Trying to get Arduino IDE 2.0 Beta running on Linux Mint
IDE 2 throws errors, so advised to try v1.8.13
Similar error - can't locate 'python' (typing 'python' in Terminal gives command not found as it's expected that users will type 'python3' in MINT 20.1
SOLUTION - make the 'python' command call 'python3'
sudo apt remove python-is-python2
sudo apt install python-is-python3
Now the IDE throws a serial port error -
'ModuleNotFoundError: No module named 'serial'
SOLUTION - install the serial module
sudo pip3 install pyserial
Compiled once and then never again - throwing java errors
java.lang.NullPointerException etc etc
SOLUTION (long term or temporary?) - reduce the port communication data rate
Reduced Tools/Upload Speed from default 921600 to 115200
OK - Now that IDE v1.8.13 appears to be working - let's go back to IDE 2.0 Beta 5
4) Various errors related to port connection - e.g.
'Compilation complete: Error: 2 Unknown: Uploading error: no upload port provided'
So, the field at the top of the IDE Editor Window that shows the board connected has a red cross at the start of the name. It is not possible to rectify this situation from either this drop-down or from the Tools menu by selecting the board and the port.
SOLUTION - this appears to be a port ownership problem on IDE v2 (but not for IDE v1.8.13 !)
Typing 'ls -l /dev/ttyUSB*' in the Terminal confirmed that the active port was owned by group owner 'dialout'
Typing 'sudo usermod -s -G dialout myusername' (please replace 'myusername' with yours) and logging out and back in again enabled the IDE v2.0 to operate apparently correctly.
It is slightly concerning that the field at the top of the editor window now shows an amber triangle with an exclamation mark at the start of the board description, but it does appear to be working for now with a basic Blink script
I hope that this tale of woe may be of some help to others.
If anyone believes these solutions to be incorrect or incomplete in some way, please add an update. Thanks.