[mythtv] mytharchive error

Paul Harrison mythtv at dsl.pipex.com
Wed May 24 21:03:59 UTC 2006


philippe wrote:
> Le Mercredi 17 Mai 2006 19:43, philippe a écrit :
>
> No one have an idea about the error I have when I run mytharchive to export 
> some recorded files ?
>
>   
>> Hello,
>>
>> I have some problems with mytharchive (I use it with the lastest mythtv svn
>> under kubuntu dapper) .
>>
>> When I try to export some tv record, mytharchive give me this errors:
>>
>> mythburn.py (0.1.20060516-1) starting up...
>> Process priority 8
>> script path:/usr/local/share/mythtv/mytharchive/scripts
>> myth share path:/usr/local/share/mythtv
>> passed job file: /home/philippe/tmp/config/mydata.xml
>> passed progress log file: /home/philippe/tmp/logs/progress.log
>> mythburn.py (0.1.20060516-1) starting up...
>> Obtaining MythTV settings from MySQL database for hostname homecinema
>> Obtaining date and time settings from MySQL database for hostname
>> homecinema Processing Mythburn job number 1.
>> Options - mediatype = 3, doburn = 0, createiso = 1, erasedvdrw = 0
>>           savefilename = 'test'
>> Looking for: /usr/local/share/mythtv/mytharchive/themes/G.A.N.T./theme.xml
>> Loading font 0, /usr/local/share/mythtv/FreeSans.ttf size 23
>> Loading font 1, /usr/local/share/mythtv/FreeSans.ttf size 18
>> Loading font 2, /usr/local/share/mythtv/FreeSans.ttf size 16
>> wantIntro: 1, wantMainMenu: 1, wantChapterMenu:1, wantDetailsPage: 1
>> Final DVD Video format will be pal
>> There are 1 files to process
>> Pre-processing file '2275_20051222205200.mpg' of type 'recording'
>> ------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line
>> 2753, in ?
>>     processJob(job)
>>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line
>> 2547, in processJob
>>     preProcessFile(node,folder)
>>   File "/usr/local/share/mythtv/mytharchive/scripts/mythburn.py", line 904,
>> in preProcessFile
>>     mediafile = os.path.join(recordingpath,
>> file.attributes["filename"].value) File "/usr/lib/python2.4/posixpath.py",
>> line 62, in join
>>     elif path == '' or path.endswith('/'):
>> AttributeError: 'NoneType' object has no attribute 'endswith'
>> ------------------------------------------------------------
>>
>> Can someone give me the solution ?
>>
>> Thank's
>> Philippe
>>     
>
Not sure but it looks like the recordingpath variable isn't being set 
for some reason. It is set from  from the 'RecordFilePrefix' setting 
that is read from the database. I'd start by checking the db query used 
to get the settings is returning sane values.

select value, data from settings where value in ('DBSchemaVer') or 
(hostname='YOUR_HOST_NAME' and value in(
'RecordFilePrefix',  'VideoStartupDir',  'GalleryDir',  
'MusicLocation',  'MythArchiveVideoFormat',  'MythArchiveTempDir',
'MythArchiveFfmpegCmd',  'MythArchiveMplexCmd',  
'MythArchiveDvdauthorCmd', 'MythArchiveMkisofsCmd',
'MythArchiveTcrequantCmd',  'MythArchiveMpg123Cmd',  
'MythArchiveProjectXCmd',  'MythArchiveDVDLocation',
'MythArchiveGrowisofsCmd',  'MythArchivePng2yuvCmd',  
'MythArchiveSpumuxCmd',  'MythArchiveMpeg2encCmd',
'ISO639Language0',  'ISO639Language1')) order by value;

Change YOUR_HOST_NAME to match the hostname you use.

Paul H.





More information about the mythtv-dev mailing list