Linux [SOLVED] kodi-send claims "No module named xbmcclient"
#1
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
Reply
#2
You need to install kodi-eventclients

https://www.archlinux.org/packages/commu...ntclients/
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
#3
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....
Reply
#4
What happens if you do
Code:
python2
import xbmcclient
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
#5
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
>>>
Reply
#6
And how about
Code:
python2
import kodi.xbmcclient
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
#7
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
Reply
#8
dist-packages is a debianism. i have submitted a PR to improve on this; https://github.com/xbmc/xbmc/pull/11880
Reply
#9
(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!
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] kodi-send claims "No module named xbmcclient"0