[mythtv-users] Jamu on CentOS 5

Ian Forde ian at duckland.org
Fri Sep 18 21:18:11 UTC 2009


As promised, here's how to get Jamu working with CentOS 5...

I've got MySQL-python (stock), python-elementtree (stock),
python-hashlib (stock), and python-lxml (rpmforge) installed, among
other things.  I've also installed the IMDbPY rpm from imdbpy.sf.net.
And yes, the myth python bindings must be installed.

*** WARNING ***

Note that this *works for me*, and it's using trunk version 21864.  Your
mileage may vary with newer/older trunk versions.  And I'm not saying
that *anyone* should do this.  This was just my experience.

*** END WARNING ***

In /usr/local/share/mythtv/mythvideo/scripts/jamu.py, I changed the line
(location of this varies) stating:

	import xml.etree.cElementTree as ElementTree
  
to:
	import cElementTree as ElementTree

and commented out the "sys.exit(False)" after the MySQLdb 1.2.2 warning.

Now, even after this, I received a warning about tvdb_api.py and the
other python scripts needing to be in the same directory as jamu.py.
Those were a red herring.  I needed to make the same "import
cElementTree as ElementTree" modification twice in the beginning of
ttvdb/tvdb_api.py.

And after that, it worked.

Why did I do this?  Because I'm planning on sticking on CentOS 5 for my
myth boxes for a while.  I went the Fedora route for myth back in 2003,
and went through too many OS changes for dependencies.  I've got QT4.4.3
happily on my boxes, and don't want to switch to Ubuntu just for Jamu,
even though Jamu is VERY helpful.

Thanks to Doug Vaughn for writing Jamu, btw - he gets full credit for
the utility.  I'm just making it work for me.  (Love that open source!)

	-I



More information about the mythtv-users mailing list