I’m on Mint (Ubuntu-based). Maybe try a different version of Java –
I created a new directory:
mkdir <directory name>
cd <directory name>
And within that a virtual environment for py5:
apt-get install python3.9-dev python3.9-venv
python3.9 -m venv env
source env/bin/activate
pip install py5
python --version
Python 3.9.5
Then I downloaded and setup an alternative version of JDK:
wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz
tar -xzvf openjdk-11+28_linux-x64_bin.tar.gz
export JAVA_HOME=$PWD/jdk-11/
jdk-11/bin/java --version
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Made a quick sketch (the Quick Example), saved it in my new directory, and tested it (python quick_example.py)
Runs fine for me.