<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ever since upgrading my Gentoo MythTV backend to 0.25, this new
Metadata lookup just kept failing. It never really caused any
problems for me, but was a nagging issue I wanted to figure out
sometime.
<br>
<br>
So the problem exhibits itself in the backend logs as follows:
<br>
<br>
mythbackend.20120104155118.21765.log:2012-01-04 21:00:29.840537
E [21765/30322] Metadata_9050 jobqueue.cpp:2188
(DoMetadataLookupThread) - JobQueue: Metadata Lookup Errored:
Suburgatory:"Driving Miss Dalia" recorded from channel 65175 at
2012-01-04T20:30:00 (Failed with exit status 128)
<br>
<br>
<br>
Ran the Metadata Lookup manually: mythmetadatalookup --starttime
20120104203000 --chanid 65175 --loglevel debug -v all
<br>
<br>
2012-01-05 16:11:36.781966 I Connected to database
'mythconverg' at host: hdtv
<br>
<br>
The subdirectory "tmdb" containing the modules tmdb_api.py
(v0.1.3 or greater), tmdb_ui.py,
<br>
tmdb_exceptions.py must have been installed with the MythTV
python bindings.
<br>
Error:(No module named MythStatic)
<br>
2012-01-05 16:11:36.782801 D MSqlQuery::exec(DBManager2) SELECT
INFORMATION_SCHEMA.COLUMNS.COLUMN_NAME FROM
INFORMATION_SCHEMA.COLUMNS WHERE
INFORMATION_SCHEMA.COLUMNS.TABLE_SCHEMA = DATABASE() AND
INFORMATION_SCHEMA.COLUMNS.TABLE_NAME = 'logging' AND
INFORMATION_SCHEMA.COLUMNS.COLUMN_NAME = 'function';
<<<< Returns 1 row(s)
<br>
2012-01-05 16:11:36.782817 D MSqlQuery::next(DBManager2)
Result: "COLUMN_NAME = function"
<br>
2012-01-05 16:11:36.874884 I Managed child (PID: 8827) has
exited! command=/usr/share/mythtv/metadata/Movie/tmdb.py -t,
status=256, result=1
<br>
<br>
...
<br>
<br>
2012-01-05 16:40:41.954747 I Starting IO manager (read)
<br>
2012-01-05 16:40:41.954754 D Launching:
/usr/share/mythtv/metadata/Movie/tmdb.py -t
<br>
2012-01-05 16:40:41.954762 I Starting IO manager (write)
<br>
2012-01-05 16:40:41.954778 I Starting process signal handler
<br>
2012-01-05 16:40:41.955187 I Managed child (PID: 10226) has
started! command=/usr/share/mythtv/metadata/Movie/tmdb.py -t,
timeout=0
<br>
2012-01-05 16:40:42.054874 I Managed child (PID: 10226) has
exited! command=/usr/share/mythtv/metadata/Movie/tmdb.py -t,
status=256, result=1
<br>
<br>
<br>
I looked in /usr/lib/python2.6/site-packages, and found some older
files for Myth (tmdb). After some digging in github, I found those
files were newer.
<br>
Next, looked at the latest ebuild, and found tmdb in <i
class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/tmp/portage/media-tv/mythtv-0.25_pre20111129/work/MythTV-mythtv-1da9d23/mythtv/bindings/python/MythTV<span
class="moz-txt-tag">/</span></i>
<br>
<br>
So why weren't the updated one being inserted into /usr from my
ebuilds tars?
<br>
<br>
The answer: my use flags were missing python. Added that, removed
the MythTV from /usr/lib/python2.6/site-packages, re-emerged, and
now the files are updated. Not sure how those got there to begin
with when I didn't have the flag set since I build the system, but
at least now I've figured it out and hopefully will help out Gentoo
users.
<br>
<br>
-JK
</body>
</html>