Kodi-Send missing module

With the latest 21.1 nightly 20241231 Kodi-Send no longer works, it returns the following error:-

**CoreELEC:****~** # 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'

Found this thread with the same error, but the solution no longer works.

It is this:

Sadly the issue was not fixed on Kodi Piers but now they introduce also to Omega.

Thanks :+1:

Export variable PYTHONPATH before using kodi-send:

export PYTHONPATH=/home/docker/build_dir/CoreELEC-21/build.CoreELEC-Amlogic-ne.aarch64-21/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/lib/python3.11/site-packages/kodi
1 Like

Perfect thank you :+1:

To save typing this ever SSH session do the following:-

echo "export PYTHONPATH=/home/docker/build_dir/CoreELEC-21/build.CoreELEC-Amlogic-ne.aarch64-21/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/lib/python3.11/site-packages/kodi" > .profile

1 Like