xbmc-send Ubuntu Lucid
#1
SOLUTION FOUND. See post below


Quote:Note: this appears to be a bug either with ubuntu 10.04 or with the current xbmc package. Hopefully an updated package will fix this issue.


I just did a fresh install of Ubuntu 10.04, It works, but I cannot get the XBMC-send python script to work.

Code:
xbmc-send
Traceback (most recent call last):
  File "/usr/bin/xbmc-send", line 29, in <module>
    from xbmcclient import *
ImportError: No module named xbmcclient

I used the Ubuntu Apt PPT for installing as shown here:
http://wiki.xbmc.org/index.php?title=HOW...Step_Guide

I would appreciate any help / hints as to how to run this.
Reply
#2
I have now followed the wiki instructions to install XBMC in a 32bit Ubuntu Lucid System. It has the same error.

Help would be appreciated.
Reply
#3
After doing some digging the appropriate python module was installed, however the location is not in python's module search path.

copying xbmc-send from /usr/bin/ to /usr/lib/python2.5/site-packages/xbmc makes it work.

Adding that directory to the environmental variable PYTHONPATH does work as well.
Reply
#4
Percius Wrote:I just did a fresh install of Ubuntu 10.04, It works, but I cannot get the XBMC-send python script to work.

Code:
xbmc-send
Traceback (most recent call last):
  File "/usr/bin/xbmc-send", line 29, in <module>
    from xbmcclient import *
ImportError: No module named xbmcclient

this looks like tools/EventClients from xbmc are not installed (properly).

look if you have an package like xbmc-eventclients-common installed
greetings, Stephan

Image

Image
Reply
#5
For those out there that are having similar issues to me, I found that at least in Ubuntu 10.04 there is no PYTHONPATH defined by default. As a result it does not find the xbmc python library.

edit /etc/environment
ADD TO A NEW LINE
Code:
PYTHONPATH="/usr/lib/python2.5/site-packages/"

Note, while this fix works I recommend that it be added to the package or somewhere in the install process.
Reply
#6
openelec.tv Wrote:this looks like tools/EventClients from xbmc are not installed (properly).

look if you have an package like xbmc-eventclients-common installed

I do indeed have xbmc-eventclients-common installed.
Reply
#7
Although the problem here can be fixed using the above methods, the real root of the issue is down to the XBMC python package being installed to the wrong location. It's assuming Python 2.5 when in fact Lucid uses Python 2.6.

I fixed this by moving the package to where it should have been installed:

sudo mv /usr/lib/python2.5/site-packages/xbmc /usr/lib/python2.6/dist-packages/

You can then delete the 2.5 directory as there's nothing else in there.

sudo rm -r /usr/lib/python2.5/
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc-send Ubuntu Lucid0