[mythtvnz] How do you make mythtv-setup 'see' tv_grab_nz-py.py?

Brett Miller blmiller at slingshot.co.nz
Thu May 20 22:14:58 BST 2010


Richard

Definitely get the original linux script (hads).
Then you can modify the line which selects which "file.xml" to grap as 
per your needs.

Check you have python environment working . Maybe run the myth mysql 
database backup script (.mythtv/scripts) to check.

Should be able to run
1.  "tv_grab_nz-py  --configure"
(no command prefix needed & no .py suffix)

Download the freeview .xml or other .xml epg file & then try:
2.  mythfilldatabase --file 1 freeview.xml --update
observe the stdout

then try (long tedious)
3.  mythfilldatabase --manual

  Then run
4. mythfilldatabase
observe the stdout as it does the download & db update etc

Brett


On 21/05/2010 8:16 a.m., Richard Clarke wrote:
> Thanks for your responses so far to my query. I have just run 
> tv_find_grabbers from the command line and it still doesn't find the 
> tv_grab_nz script. It did find all the 'out of the box' scripts that 
> come with Mythbuntu. I then ran tv_validate_grabber and it came back 
> with the following info concerning the tv_grab_nz script.
>
> richard at hda2:/usr/bin$ tv_validate_grabber tv_grab_nz
> Can't exec "tv_grab_nz": No such file or directory at 
> /usr/share/perl5/XMLTV/ValidateGrabber.pm line 397.
> Failed to execute tv_grab_nz --configure --config-file 
> /tmp/wVyHnSd1ED/conf: No such file or directory
> Error returned from grabber during configure.
> Grabber with --version failed: 32512, Inappropriate ioctl for device
> Grabber with --description failed: 32512, Inappropriate ioctl for device
> Grabber with --capabilities failed: 32512,
> Use of uninitialized value $cap in split at 
> /usr/share/perl5/XMLTV/ValidateGrabber.pm line 212.
> The grabber does not claim to support the 'baseline' capability.
> The grabber does not claim to support the 'manualconfig' capability.
> Configuration file /tmp/wVyHnSd1ED/conf does not exist. Aborting.
> Grabber did not validate ok. See /tmp/wVyHnSd1ED/t_commands.log for a 
> list of the commands that were used
> 6 errors found.
>
> Basically I think the script I'm using is failing at the validate 
> phase so mythtv-setup ignores it. I tried running the script from the 
> commandline without prefixing with python, i.e ./tv_grab_nz to see if 
> the Python environment was OK. It came back with an error like "Bad 
> Interpreter: /usr/bin/python^M"
>
> After I had shut the PC down for the night it occurred to me that the 
> "^M" at the end of that error message might indicate an end of line 
> problem. The script I'm using has been copied from my Windows GBPVR 
> machine and I have opened it in an editor on that platform in the 
> past. I'll try again with a virgin copy of Hadley's script and see if 
> it can pass the validation check.
>
> Feel free to offer any further suggestions that occur to you, and 
> thanks for your help.
>
> Cheers
> Richard
>
>
> On 20 May 2010 11:05, Hadley Rich <hads at nice.net.nz 
> <mailto:hads at nice.net.nz>> wrote:
>
>     On Thu, 2010-05-20 at 09:51 +1200, Richard Clarke wrote:
>     >  I'm currently in the process of trying to set up my Master
>     backend on
>     > my server which is Mythbuntu 10.04 based. I'm struggling with
>     the set
>     > up of the tv_grab_nz-py.py epg grabber, or rather making
>     mythtv-setup
>     > 'see' the grabber. I would ideally like mythfilldatabase do the
>     > running of the script automatically (I believe this is possible)
>     > rather than running the script 'manually' and then having
>     > mythfilldatabase suck in the resulting xmltv listings file (though
>     > that's my back up plan if I can't get mythtv-setup to see the
>     grabber
>     > itself).
>
>     Welcome.
>
>     MythTV uses tv_find_grabbers to find the grabbers, it's easier to test
>     with that from the CLI than open mythtv-setup all the time.
>
>     I think all you need is xmltv installed and tv_gran_nz-py in your
>     (mythtv's) path and it should work. Anything named tv_grab* is fine
>     IIRC.
>
>     hads
>     --
>     http://nicegear.co.nz
>     New Zealand's Open Source Hardware Supplier
>
>
>     _______________________________________________
>     mythtvnz mailing list
>     mythtvnz at lists.linuxnut.co.nz <mailto:mythtvnz at lists.linuxnut.co.nz>
>     http://lists.ourshack.com/mailman/listinfo/mythtvnz
>     Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>    
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.437 / Virus Database: 271.1.1/2876 - Release Date: 05/15/10 18:26:00
>
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/mythtvnz/attachments/20100521/97412b6c/attachment.htm 


More information about the mythtvnz mailing list