← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 653958] Re: mytharchive KeyError: 'ISO639Language0'

 

** Tags added: patch

-- 
mytharchive KeyError: 'ISO639Language0'
https://bugs.launchpad.net/bugs/653958
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.

Status in Mythbuntu, Ubuntu derivative focused upon MythTV: New

Bug description:
Using mythtv 0.24.0~trunk26610-0ubuntu from daily builds.

When using mytharchive it reports an error like this:
Using simple_fix_rtl
mythburn.py (0.1.20100626-1) starting up...
script path:/usr/share/mythtv/mytharchive/scripts
myth share path:/usr/share/mythtv
QSqlDatabasePrivate::removeDatabase: connection 'DBManager0' is still in use, all queries will cease to work.
Found 2 CPUs
Obtaining MythTV settings from MySQL database for hostname htpc
temppath: /var/lib/mytharchive/temp/work
logpath:  /var/lib/mytharchive/temp/logs
Traceback (most recent call last):
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py.bak", line 5529, in <module>
    main()
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py.bak", line 5414, in main
    preferredlang1 = defaultsettings["ISO639Language0"]
KeyError: 'ISO639Language0'

The problem is that ISO639Language0 and 1 have a NULL hostname (at least in my database).
Therefore the fix is to change the sql statement on line 807 in /usr/share/mythtv/mytharchive/scripts/mythburn.py





References