Linux - [SOLVED] kodi-send claims "No module named xbmcclient"

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
produnis Offline
Junior Member
Posts: 6
Joined: Sep 2015
Reputation: 0
Post: #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
(This post was last modified: 2017-03-21 09:07 by produnis.)
find quote
lrusak Offline
Team-Kodi Member
Posts: 922
Joined: Sep 2011
Reputation: 14
Location: The Great White North
Post: #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
find quote
produnis Offline
Junior Member
Posts: 6
Joined: Sep 2015
Reputation: 0
Post: #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....
find quote
lrusak Offline
Team-Kodi Member
Posts: 922
Joined: Sep 2011
Reputation: 14
Location: The Great White North
Post: #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
find quote
produnis Offline
Junior Member
Posts: 6
Joined: Sep 2015
Reputation: 0
Post: #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
>>>
find quote
lrusak Offline
Team-Kodi Member
Posts: 922
Joined: Sep 2011
Reputation: 14
Location: The Great White North
Post: #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
find quote
cspack Offline
Junior Member
Posts: 24
Joined: Jan 2012
Reputation: 1
Post: #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
find quote
ironic_monkey Offline
Posting Freak
Posts: 1,342
Joined: Nov 2013
Reputation: 65
Post: #8
dist-packages is a debianism. i have submitted a PR to improve on this; https://github.com/xbmc/xbmc/pull/11880
find quote
produnis Offline
Junior Member
Posts: 6
Joined: Sep 2015
Reputation: 0
Post: #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!
find quote