PDA

View Full Version : getting iTunes plugin to work on ubunutu


TC!!
2009-06-15, 13:13
I'm tearing my hair out trying to get the iTunes plugin to work on my ubuntu box.

My iTunes library is backed up into a folder on my ubuntu box so I have a direct path to the library. I've downloaded the latest version of the plugin from: http://code.google.com/p/xbmc-addons/

I deleted the iTunes directory from /usr/share/xbmc/plugins/music and placed the iTunes plugin I downloaded into ~/.xbmc/plugins/music

I then edited default.py and changed the platform to Linux and set the path to my library:
filename = '/media/jamie/Music/iTunes/iTunes Music Library.xml'

When I run it in xbmc I get a "scripts error" message. In the log file I see this message:
10:59:57 T:2865056656 M:224935936 NOTICE: File "/home/***/.xbmc/plugins/music/iTunes/default.py", line 32, in ?
10:59:57 T:2865056656 M:224935936 NOTICE:
10:59:57 T:2865056656 M:224935936 NOTICE: from itunes_parser import *
10:59:57 T:2865056656 M:224935936 NOTICE: File "/home/***/.xbmc/plugins/music/iTunes/itunes_parser.py", line 19, in ?
10:59:57 T:2865056656 M:224935936 NOTICE:
10:59:57 T:2865056656 M:224935936 NOTICE: from sqlite3 import dbapi2 as sqlite
10:59:57 T:2865056656 M:224935936 NOTICE: ImportError
10:59:57 T:2865056656 M:224935936 NOTICE: :
10:59:57 T:2865056656 M:224935936 NOTICE: No module named sqlite3
10:59:57 T:2865056656 M:224935936 NOTICE:
10:59:57 T:2865056656 M:224935936 ERROR: Scriptresult: Error

I know nothing about python but I saw this in the itunes_parser.py file:
try:
from pysqlite2 import dbapi2 as sqlite
except:
from sqlite3 import dbapi2 as sqlite

So I changed it to just say:
from pysqlite2 import dbapi2 as sqlite

After doing that the error changed to tell me there was an error because there was no module named _sqlite.

Can anyone out there help me? I'm hoping I just need to install the correct python modules to get this working.

TC!!
2009-08-25, 16:47
Posted this back in June and no replies, can't anyone help with this?