[RPi4] LE13 Nightly - kodi-send Stopped Working

  • It looks something has changed in some of recent updates (currently running 13.0-nightly-20240725-2cd39ba (RPi4.aarch64), issue observed on 13.0-nightly-20240720-ab27426 ) that broke kodi-send:

    # kodi-send
    Traceback (most recent call last):
    File "/usr/bin/kodi-send", line 27, in <module>
    from kodi.xbmcclient import *
    ModuleNotFoundError: No module named 'kodi'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/usr/bin/kodi-send", line 30, in <module>
    from xbmcclient import *
    ModuleNotFoundError: No module named 'xbmcclient'

    Perhaps some paths needs to be updated?

  • OK, so this is a "fix" for me. As I am using kodi-send with irexec, putting this block into /storage/.config/autostart.sh before irexec call fixes the issue.

    Code
    ### Temporary fix kodi-send bug
    cp /usr/bin/kodi-send /tmp/.
    cp /build/build.LibreELEC-RPi4.aarch64-13.0-devel/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/lib/python3.11/site-packages/kodi/xbmcclient.py /tmp/.
    export PATH=/tmp/:$PATH
    ### Temporary fix kodi-send bug