I have applied the patch from Xbmc master to this particular problem and now addons work properly and no more crash. The patch is legit and should be applied to official Ubuntu 24.04 repo
** Patch added: "0001-CPythonInvoker-code-cleanup.patch" https://bugs.launchpad.net/ubuntu/+source/kodi/+bug/2063358/+attachment/5770220/+files/0001-CPythonInvoker-code-cleanup.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063358 Title: Kodi from Debian (20.5) crashes when running addons due to Python 3.12 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kodi/+bug/2063358/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs