<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
What is the output of the following commands (if your distro has ttvdb.py<br>
and tmdb3.py in a different location you may need to search for them and<br>
correct the path as appropriate). Make sure to run as the same user in same<br>
environment as is running the backend.<br>
<br>
/usr/local/share/mythtv/<wbr>metadata/Television/ttvdb.py -v<br>
/usr/local/share/mythtv/<wbr>metadata/Movie/tmdb3.py -v<br>
/usr/local/share/mythtv/<wbr>metadata/Movie/tmdb3.py -t<br>
<br>
I was getting the same error. In my case on a clean install (but heavily<br>
customised inside a docker container) I found that I was missing group<br>
execute permissions on ttvdb.py and tmdb3.py. I also had no ~/.mythtv/cache<br>
directory and ttvdb.py failed until I manually created the cache directory<br>
with appropriate permissions. I also used pip to install requests_cache "pip<br>
install requests-cache".<br>
<br>
$/usr/local/share/mythtv/<wbr>metadata/Television/ttvdb.py -v<br>
Traceback (most recent call last):<br>
  File "/usr/local/share/mythtv/<wbr>metadata/Television/ttvdb.py", line 1074, in<br>
<module><br>
    os.mkdir(cache_dir)<br>
OSError: [Errno 2] No such file or directory:<br>
'/home/mythtv/.mythtv/cache/<wbr>tvdb_api/'<br>
<br></blockquote><div>I have a .mythtv/cache file with proper permissions. All apropriate python modules are installed. ttvdb.py, tmdb3.py and mythmetadatalookup all work fine commandline using the same user as runs them as mythbackend. The only place that fails to run them is withing mythtbackend mythmetadatalookup jobs. I now run mythmetadatalookup in a cron job and that works fine, but is not ideal.</div><div><br></div><div> 08:05:06 marlon:~$ sudo -u mythtv /usr/share/mythtv/metadata/Movie/tmdb3.py -v</div><div><?xml version='1.0' encoding='UTF-8'?></div><div><grabber></div><div>  <name>TheMovieDB.org V3</name></div><div>  <author>Raymond Wagner</author></div><div>  <thumbnail>tmdb.png</thumbnail></div><div>  <command>tmdb3.py</command></div><div>  <type>movie</type></div><div>  <description>Search and metadata downloads for <a href="http://themoviedb.org">themoviedb.org</a></description></div><div>  <version>0.3.7</version></div><div>  <accepts>tmdb.py</accepts></div><div>  <accepts><a href="http://tmdb.pl">tmdb.pl</a></accepts></div><div></grabber></div><div>08:05:10 marlon:~$ sudo -u mythtv /usr/share/mythtv/metadata/Movie/tmdb3.py -t</div><div>Everything appears in order.</div><div>08:05:13 marlon:~$ sudo -u mythtv /usr/share/mythtv/metadata/Television/ttvdb.py -v</div><div><grabber></div><div>  <name>TheTVDB.com</name></div><div>  <author>R.D.Vaughan</author></div><div>  <thumbnail>ttvdb.png</thumbnail></div><div>  <command>ttvdb.py</command></div><div>  <type>television</type></div><div>  <description>Search and metadata downloads for <a href="http://thetvdb.com">thetvdb.com</a></description></div><div>  <version>2.0.0</version></div><div></grabber></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote></div></div></div>