[mythtv-users] mythburn

Paul Harrison mythtv at sky.com
Sun Feb 13 10:20:27 UTC 2011


On 13/02/11 07:23, James wrote:
> G'day
>
> (I sent this a while ago, but did not see it posted. gremlins? here goes again 
> ...)
>
> I have in the past used these features, I used to run svn head.
>
> 0.24 fixes as of december
> I tried to burn a Mythcenter-Autoplay DVD and got this. Does it make sense to 
> anybody? Thanks
> James
>
> *************************************************************
> Finished processing '/mnt/store/1003_20110205193000.mpg'
> *************************************************************
> Creating details pages
> Background image file is 
> /usr/local/share/mythtv/mytharchive/themes/MythCenter_-_Autoplay/MythCenter-
> Background.png
> Music is silence.ac3, length is 5 seconds
> Creating details page for 1
> Image (320, 180) into space of (275, 205) at (55, 55)
> Image resized to (275, 205) at (55, 55)
> Added image /mnt/store/mytharchive/work/1/title.jpg
> ------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 5501, 
> in main
>     processJob(job)
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 5228, 
> in processJob
>     createDetailsPage(format, dpi, files.length)
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 4208, 
> in createDetailsPage
>     "", spumuxdom, spunode, numberofitems, 0, "")
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 3588, 
> in drawThemeItem
>     paintText(draw, bgimage, text, node)
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 1169, 
> in paintText
>     lines = intelliDraw(draw, text, font, width - (hindent * 2))
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 998, in 
> intelliDraw
>     if drawer.textsize(' '.join(thistext),font.getFont())[0] > containerWidth:
>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 205, in 
> getFont
>     self.font = ImageFont.truetype(self.fontFile, int(self.size))
>   File "/usr/lib64/python2.6/site-packages/PIL/ImageFont.py", line 218, in 
> truetype
>     return FreeTypeFont(filename, size, index, encoding)
>   File "/usr/lib64/python2.6/site-packages/PIL/ImageFont.py", line 134, in 
> __init__
>     self.font = core.getfont(file, size, index, encoding)
> IOError: cannot open resource
> ------------------------------------------------------------
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/mailman/listinfo/mythtv-users
>

That bug was fixed in early December I believe (I'd find the commit for
you if git and github wasn't such a pain in the arse to use). The
location of the fonts was moved but the script didn't get updated to
look in the new location. So if you update to a newer version or find
the commit and make the one line change that is needed yourself all will
be well again.

Paul H.


More information about the mythtv-users mailing list