[mythtvnz] tv_grab_nz-py

Barry Clearwater mythtvnz@lists.linuxnut.co.nz
Sat, 07 Jul 2007 11:22:31 +1200


Wait, I'm an idiot, I was running it on --configure mode, I understand
now because it gave output!
Its saturday morning and I'm clearly not very bright, probably the hard
frost and light snow dusting!
Still need to sort out the time sync problem.

Barry
On Sat, 2007-07-07 at 11:06 +1200, Barry Clearwater wrote:
> I installed elementtree and the script ran nicely although I don't know
> what it did.
> I have the problem at the moment that all my listings (no matter which
> method I use) are 12 hours out.
> I've changed the setting for offset in mythtv-backend to either auto or
> none without any change.
> My clock is set correctly so I'm a bit puzzled.
> 
> I'm python agnostic, so all I'm doing is assuming that this script is a
> localisation of the other tv_grab scripts that come with or for mythtv,
> so should be able to be integrated with myth - correct?
> 
> Is it directly updating the mysql tables?
> 
> Sorry for the heap of questions, Im trying to learn.
> Barry
> 
> On Sat, 2007-07-07 at 10:46 +1200, Hadley Rich wrote:
> > On Sat, 07 Jul 2007 10:35:26 Nick Rout wrote:
> > > Thanks, thats installed (very small emerge - 40kb)
> > >
> > > I have python 2.4.2 and elementtree 1.2.6. I haven't downloaded your
> > > latest version.
> > >
> > > Now I get this:
> > >
> > > nick@sf ~/tmp $ ./tv_grab_nz-py --configure
> > > INFO - Downloading data from epg.pvr.geek.nz...
> > > INFO - Done
> > > INFO - Parsing channel data...
> > > Traceback (most recent call last):
> > >   File "./tv_grab_nz-py", line 212, in ?
> > >     doc = ElementTree.parse(StringIO(text)).getroot()
> > >   File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py",
> > > line 859, in parse
> > >     tree.parse(source, parser)
> > >   File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py",
> > > line 578, in parse
> > >     parser = XMLTreeBuilder()
> > >   File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py",
> > > line 1114, in __init__
> > >     raise ImportError(
> > > ImportError: No module named expat; use SimpleXMLTreeBuilder instead
> > 
> > Hmm, I guess the Python that you have doesn't include expat which it seems 
> > elementtree requires. I'm not sure sorry, seems like it should be a 
> > dependency if it's required. In Debian expat is in the main Python package. I 
> > don't know Gentoo but can you `$SEARCH_PACKAGES python | grep expat`?
> > 
> > hads
> > 
> 
> 18 Shaw Street
> Mosgiel
> mailto:barryc@bcsystems.co.nz 
> ph 03 4893915
> mob 027 2219338
> 
> 
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
> 
> 

18 Shaw Street
Mosgiel
mailto:barryc@bcsystems.co.nz 
ph 03 4893915
mob 027 2219338