Kodi Community Forum
Kodi 20.5 Python issues on Arch - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Kodi 20.5 Python issues on Arch (/showthread.php?tid=377365)



Kodi 20.5 Python issues on Arch - HydroDiOxide - 2024-05-02

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



RE: Kodi 20.5 Python issues on Arch - HydroDiOxide - 2024-05-02

So I fixed the issue with a Python rollback to 3.11 (the recent update was 3.12), but is there a way to run Kodi 20.5 with Python 3.12 installed?


RE: Kodi 20.5 Python issues on Arch - Neo1973 - 2024-05-02

Kodi on Arch is on version 21.0 (https://archlinux.org/packages/extra/x86_64/kodi/). You can't stay on 20.5 and still update the rest of the system.


RE: Kodi 20.5 Python issues on Arch - HydroDiOxide - 2024-05-02

I'm aware of that, but I'm kind of holding back 21 because my favourite skin is not supported (yet). I'm looking into a different one though.


RE: Kodi 20.5 Python issues on Arch - graysky - 2024-05-02

You'll have to build 20.5 against the contemporary package set including python3.12

EDIT: actually it seems that 20.5-2 was built against python3.12.  Is this the version you have installed?

https://gitlab.archlinux.org/archlinux/packaging/packages/kodi/-/commit/0e09a063fd59d070e7fbdb8e72844a70ca9f7709

You can download it from ALA: 
https://archive.archlinux.org/packages/k/kodi/kodi-20.5-2-x86_64.pkg.tar.zst
https://archive.archlinux.org/packages/k/kodi/kodi-20.5-2-x86_64.pkg.tar.zst.sig


RE: Kodi 20.5 Python issues on Arch - HydroDiOxide - 2024-05-03

(2024-05-02, 21:40)graysky Wrote: You'll have to build 20.5 against the contemporary package set including python3.12

EDIT: actually it seems that 20.5-2 was built against python3.12.  Is this the version you have installed?

https://gitlab.archlinux.org/archlinux/packaging/packages/kodi/-/commit/0e09a063fd59d070e7fbdb8e72844a70ca9f7709

You can download it from ALA: 
https://archive.archlinux.org/packages/k/kodi/kodi-20.5-2-x86_64.pkg.tar.zst
https://archive.archlinux.org/packages/k/kodi/kodi-20.5-2-x86_64.pkg.tar.zst.sig
Actually my version is 20.5-1.

Thanks for providing the links. I'll download to see if it works.

Update: that didn't work. Kodi is now 20.5-2 and Python 3.12.3. When launched, Kodi crashes immediately.


RE: Kodi 20.5 Python issues on Arch - graysky - 2024-05-04

Depending on the nature of the crash, you might need to rebuild it yourself.  You did not provide any helpful debugging info


RE: Kodi 20.5 Python issues on Arch - HydroDiOxide - 2024-05-04

(2024-05-04, 13:53)graysky Wrote: Depending on the nature of the crash, you might need to rebuild it yourself.  You did not provide any helpful debugging info

Here is the crashlog: https://paste.kodi.tv/piqenarofi.kodi