[mythtv-users] Creating DVD with menu fails in MythArchive with "IOError: cannot open resource"

Bob Shanteau rmshant at gmail.com
Fri Apr 22 20:38:38 UTC 2011


I can create a DVD (iso image or burn to disk) just fine with 
MythArchive without a menu, but whenever I try to use a menu, it fails. 
Here are the final few lines of my log file:

*************************************************************
Finished processing '/storage/recordings/2723_20110412104401.mpg'
*************************************************************
Menu items per page 4
Background image file is 
/usr/share/mythtv/mytharchive/themes/Black/Black-Background.png
Music is silence.ac3, length is 15 seconds
Creating DVD menus
Menu page 1
Creating Preview Video
------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5501, 
in main
     processJob(job)
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5220, 
in processJob
     createMenu(format, dpi, files.length)
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3848, 
in createMenu
     spumuxdom, spunode, numberofitems, 0,"")
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3588, 
in drawThemeItem
     paintText(draw, bgimage, text, node)
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1169, 
in paintText
     lines = intelliDraw(draw, text, font, width - (hindent * 2))
   File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 998, 
in intelliDraw
     if drawer.textsize(' '.join(thistext),font.getFont())[0] > 
containerWidth:
   File "/usr/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 205, 
in truetype
     return FreeTypeFont(filename, size, index, encoding)
   File "/usr/lib64/python2.6/site-packages/PIL/ImageFont.py", line 121, 
in __init__
     self.font = _imagingft.getfont(file, size, index, encoding)
IOError: cannot open resource
------------------------------------------------------------

I am running MythDora 12.23 with all Fedora and MythTV updates through 
the Gnome Package Manager (meaning that I'm running MythTV 0.24-2.fc12 
(x86_64). Apparently the failure is occurring during the creation of a 
preview video when an IOError occurs from not being able to open a 
resource. Has anyone else experienced this problem?

Bob Shanteau


More information about the mythtv-users mailing list