Kodi Community Forum
Linux [SOLVED] kodi-send claims "No module named xbmcclient" - 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: Linux [SOLVED] kodi-send claims "No module named xbmcclient" (/showthread.php?tid=309969)



[SOLVED] kodi-send claims "No module named xbmcclient" - produnis - 2017-03-19

Hi there,
I run Archlinux on my laptop and my desktop. I thought that the systems are both the same.

With these computers, I controll my kodi-openelec-boxes using kodi-send.

For example, I change to a specific user profile using
Code:
kodi-send --host=192.168.0.160 --port=9777 --action="LoadProfile(Master user)"

Or I update my videos
Code:
kodi-send --host=192.168.0.160 --port=9777 --action="UpdateLibrary(video)"

So, my problem is:
While everything is fine on my desktop, my laptop starts giving me the following error when I try to use kodi-send:
Code:
Traceback (most recent call last):
  File "/sbin/kodi-send", line 29, in <module>
    from xbmcclient import *
ImportError: No module named xbmcclient

Could anybody please give me a hint on how to fix that?

Greetings from Germany
Joe


kodi-send claims "No module named xbmcclient" - lrusak - 2017-03-19

You need to install kodi-eventclients

https://www.archlinux.org/packages/community/x86_64/kodi-eventclients/


RE: kodi-send claims "No module named xbmcclient" - produnis - 2017-03-19

have them installed on both machines...

Code:
$ pacaur -Ss kodi-eventclients
community/kodi-eventclients 17.0-1 [Installiert]
    Kodi Event Clients
aur/kodi-eventclients-git 20170304.2bbf02ddfaf-1 (67, 0,68)
    Kodi Event Clients (master branch)
aur/kodi-eventclients-pre-release 17.1rc1-1 (1, 0,06)
    Kodi Event Clients (master branch)

I might add that it "stopped working" on the Laptop... It worked for years, but for two weeks ago, I get these error messages....


kodi-send claims "No module named xbmcclient" - lrusak - 2017-03-19

What happens if you do
Code:
python2
import xbmcclient



RE: kodi-send claims "No module named xbmcclient" - produnis - 2017-03-20

Code:
$ python2
Python 2.7.13 (default, Dec 21 2016, 07:16:46)
[GCC 6.2.1 20160830] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xbmcclient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named xbmcclient
>>>



kodi-send claims "No module named xbmcclient" - lrusak - 2017-03-20

And how about
Code:
python2
import kodi.xbmcclient



RE: kodi-send claims "No module named xbmcclient" - cspack - 2017-03-20

The kodi-eventclients modules reside in /usr/lib/python2.7/dist-packages which isn't in the default python path, at least on current Arch. You could do something like this:
Code:
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages



RE: kodi-send claims "No module named xbmcclient" - ironic_monkey - 2017-03-20

dist-packages is a debianism. i have submitted a PR to improve on this; https://github.com/xbmc/xbmc/pull/11880


RE: kodi-send claims "No module named xbmcclient" - produnis - 2017-03-21

(2017-03-20, 05:43)cspack Wrote: The kodi-eventclients modules reside in /usr/lib/python2.7/dist-packages which isn't in the default python path, at least on current Arch. You could do something like this:
Code:
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages

Thx a lot, adding this path solves my problem!!!!
YEEEEHAAA!!!
:-)
thx again!