Kodi keeps crashing after some updates. Any way to fix this?
Here is the crashlog: https://paste.kodi.tv/ninazacumi.kodi.
This is what I get when trying to start from a terminal:
Code:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name="python3"
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir="/usr/lib/python3.11"
sys._base_executable="/usr/bin/python3"
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir="lib"
sys.executable="/usr/bin/python3"
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python311.zip',
'/usr/lib/python3.11',
'/usr/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007722a6a006c0 (most recent call first):
<no Python frame>
/usr/bin/kodi: line 181: 5686 Segmentation fault (core dumped) ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/kodi_user/kodi_crashlog-20240502_104238.log