[mythtv-users] NEW version of mythalsig (channel logo grabber utility for lyngsat)

Stephen Boddy stephen.boddy at btinternet.com
Wed Apr 19 13:16:55 UTC 2006


On Wednesday 19 April 2006 05:07, you wrote:
> Giving your script a shot, but I hit an error immediately after it
> reads the web pages:
>
> mythtv at mythtv-server:~/mythalsig$ ./mythalsig.py -r ca
> No previous data for region "ca", creating new data...
> Processing web page 1 (of ?)...
> Processing web page 2 (of 12)...
> Processing web page 3 (of 12)...
> Processing web page 4 (of 12)...
> Processing web page 5 (of 12)...
> Processing web page 6 (of 12)...
> Processing web page 7 (of 12)...
> Processing web page 8 (of 12)...
> Processing web page 9 (of 12)...
> Processing web page 10 (of 12)...
> Processing web page 11 (of 12)...
> Processing web page 12 (of 12)...
>
> --Channel ID:
> 1270---------------------------------------------------[001/293]--
>          Name: Arts & Entertainment Canada
>      Callsign: ARTSC
>      XMLTV ID: 10036
>     Icon Path: none
>
> I have no matching presets.
> Traceback (most recent call last):
>    File "./mythalsig.py", line 529, in ?
>      main()
>    File "./mythalsig.py", line 510, in main
>      matcher=Matcher(channel_list, region_list)
>    File "./mythalsig.py", line 332, in __init__
>      self.assignIcons()
>    File "./mythalsig.py", line 373, in assignIcons
>      option_list=self.region_list.searchRegions(search_terms)
>    File "./mythalsig.py", line 165, in searchRegions
>      results = heapq.nlargest(n, uniq_results)
> AttributeError: 'module' object has no attribute 'nlargest'

Derek, please keep it on list unless I get otherwise instructed. That way 
others might see the answer to their own problems. Cheers mate.

Looks like you've hit the same problem David did. I didn't think there'd be an 
issue using Python 2.4, but I suspect you're on 2.3 like he is. I'll need to 
apply and check David's patch, or feel free to do it yourself. Essentially 
nlargest is not implemented in 2.3.

"Python 2.4, final on November 30, 2004"
Some guys must be on long term systems!
-- 
Steve Boddy


More information about the mythtv-users mailing list