[ATrpms-users] MythTV tmdb.py and ttvdb.py on Centos 5

Alex Timm alextimm at Charter.net
Tue Oct 19 18:09:28 CEST 2010


I just recently had this problem.  I found this when searching for a fix:
http://www.mailinglistarchive.com/html/mythtv-users@mythtv.org/2009-09/msg01475.html.

Using this I was able to get tmdb and ttvdb to work.  The steps I took was:

1. Modify usr/share/mythtv/mythvideo/scripts/Movie/tmdb.py line 217 to read 
       class moviedbQueries: 
2. Change usr/lib/python2.4/site-packages/MythTV/MythBase.py and MythData.py
       "import xml.etree.cElementTree as etree" to "import cElementTree as etree"
3. Change usr/lib/python2.4/site-packages/MythTV/tmdb/tmdb_api.py and ttvdb/tvdb_api.py
       "import xml.etree.cElementTree as etree" to "import cElementTree as ElementTree"
       "import xml.etree.ElementTree as etree" to "import ElementTree as ElementTree"
4. Modifiy usr/lib/python2.4/site-packages/MythTV/ttvdb/cache.py
       Comment out "from _future_ import with_statement"
5. Install python-hashlib

After these modifications I was able to get metadata into MythTV.
I hope this will help other users with the same problem.

Alex Timm

On Wed, Jul 07, 2010 at 03:11:24PM +0200, Roald wrote:
> Hi all,
> 
> Do tmdb.py and ttvdb.py work at all on Centos 5?
> 
> I get:
> 
> [root at southpole ~]# /usr/share/mythtv/mythvideo/scripts/Movie/tmdb.py
> -l en -M "The Hangover"
>   File "/usr/share/mythtv/mythvideo/scripts/Movie/tmdb.py", line 217
>     class moviedbQueries():
>                          ^
> SyntaxError: invalid syntax
> 
> and
> 
> [root at southpole ~]#
> /usr/share/mythtv/mythvideo/scripts/Television/ttvdb.py -l en -M
> "Sanctuary"
> 
> The modules tvdb_api.py (v1.0.0 or greater), tvdb_ui.py,
> tvdb_exceptions.py and cache.py.
> They should have been installed along with the MythTV python bindings.
> Error:(No module named etree.cElementTree)

The latter is in python-elementtree, just yum it in.

I'm not sure what the empty parentheses for moviedbQueries
mean. Perhaps they can just be removed.

> I know jamu and some other scripts wont work because Python is too
> old, but I'm not sure if that is the problem with these scripts (it
> seems they refer to python2.4) or if I'm missing some dependency.
> 
> Any tips?
> 
> 

-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.atrpms.net/pipermail/atrpms-users/attachments/20101019/1c366465/attachment.html>


More information about the atrpms-users mailing list