<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I'm stumped. I'd try running the tests in two steps,<br>
like this (to simulate the mythtv environment better):<br>
<br>
sudo --set-home --login --user=mythtv<br>
/usr/local/share/mythtv/metada<wbr>ta/Television/ttvdb.py -v<br>
<br>
Thinking that user mythtv has a copy of some module<br>
in it's directory (done with pip install run without<br>
sudo for example.)<br>
<br>
OK, three steps: echo $PYTHONPATH while you're user mythtv.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Bill<br></font></span></blockquote><div><br></div><div>Okay - That, along with the previous suggestion led to the solution! So the command failed with the home directory set to mythtv, where it had previously worked running as just the user mythtv. So this led me to check the cache directory of /home/mythtv/.mythtv and sure enough, as previously suggested, no tvdb_api directory existed for that user (I previously checked my user's home directory). So I created that directory for the mythtv user with the right permissions and lookup jobs now work.</div><div><br></div><div>Thanks!</div></div></div></div>