Thanks. I found the problem, in the latest ubuntu version, I was missing a call to the install-mime target of the makefile.
I’ve fixed it and it will be available in the next update of the repo.
Concerning the PIL error message please install the python3-pil.imagetk like
sudo apt install python3-pil.imagtk