SOLVED........
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.
Regards
Bob