<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12/09/2017 01:05 AM, Mike Holden
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKfgc2JNrXJX5SRBw62BzZwpefUj0mdEsNwVKz+vZws3FO9Ekw@mail.gmail.com">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>system is Fedora on versions 25 and 26, the same issue is
          happening on various frontends. BE is on Fedora 25.</div>
        <div><br>
        </div>
        <div>
          <div>[mike@hagrid]$ mythfrontend --version</div>
          <div>Please attach all output as a file in bug reports.</div>
          <div>MythTV Version : v29.0-v29.0-57-gd743ef49a8</div>
          <div>MythTV Branch : fixes/29.0</div>
          <div>Network Protocol : 91</div>
          <div>Library API : 29.20170212-1</div>
          <div>QT Version : 5.7.1</div>
          <div>Options compiled in:</div>
          <div> linux debug use_hidesyms using_alsa using_oss
            using_pulse using_pulseoutput using_backend using_bdjava
            using_bindings_perl using_bindings_python using_bindings_php
            using_crystalhd using_dvb using_firewire using_frontend
            using_hdhomerun using_vbox using_ceton using_hdpvr
            using_ivtv using_joystick_menu using_libcec using_libcrypto
            using_libdns_sd using_libfftw3 using_libxml2 using_lirc
            using_mheg using_opengl using_opengl_video
            using_opengl_themepainter using_qtwebkit using_qtscript
            using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr
            using_xv using_debugtype using_systemd_notify
            using_systemd_journal using_bdjava using_bindings_perl
            using_bindings_python using_bindings_php using_fontconfig
            using_freetype2 using_mythtranscode using_opengl using_vaapi
            using_vdpau using_ffmpeg_threads using_mheg using_libass
            using_libxml2 using_libmp3lame</div>
        </div>
        <div><br>
        </div>
        <div>Since the upgrade to 29, lookups from thetvdb are failing.</div>
        <div><br>
        </div>
        <div>Here's an extract from the frontend log at the lookup time:</div>
        <div>
          <div>2017-12-09 16:35:22.676245 I  Running Grabber:
            /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB
            -D 221630 4 10</div>
          <div>2017-12-09 16:35:23.224814 I  Running Grabber:
            /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB
            -C 221630</div>
          <div>2017-12-09 16:35:23.726700 I  Running Grabber:
            /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a GB -D
            221630</div>
          <div>2017-12-09 16:35:25.178679 I  Metadata Lookup Failed: No
            Results Scorpion 4 10</div>
          <div>2017-12-09 16:35:25.194461 I  No results found for
            Scorpion 4 10</div>
        </div>
        <div><br>
        </div>
        <div>Running the lookup query from the commandline:</div>
        <div><br>
        </div>
        <div>
          <div>[mike@hagrid ~]$
            /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB
            -C 221630</div>
          <div>Traceback (most recent call last):</div>
          <div>  File "/usr/share/mythtv/metadata/Television/ttvdb.py",
            line 2464, in <module></div>
          <div>    sys.exit(main())</div>
          <div>  File "/usr/share/mythtv/metadata/Television/ttvdb.py",
            line 2169, in main</div>
          <div>    userkey=tvdb_account.account_identifier)</div>
          <div>  File
            "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py",
            line 693, in __init__</div>
          <div>    self.session.remove_expired_responses()</div>
          <div>  File
"/usr/lib/python2.7/site-packages/MythTV/ttvdb/requests_cache_compatability.py",
            line 40, in remove_expired_responses</div>
          <div>    self.cache.remove_old_entries(datetime.utcnow() -
            self._cache_expire_after)</div>
          <div>TypeError: unsupported operand type(s) for -:
            'datetime.datetime' and 'int'</div>
        </div>
        <div><br>
        </div>
        <div>The relevant section of code at that location is:</div>
        <div><br>
        </div>
        <div>
          <div>    def remove_expired_responses(self):</div>
          <div>        """ Removes expired responses from storage</div>
          <div>        """</div>
          <div>        if not self._cache_expire_after:</div>
          <div>            return</div>
          <div>        self.cache.remove_old_entries(datetime.utcnow() -
            self._cache_expire_after)</div>
        </div>
        <div><br>
        </div>
        <div>The issue seems to be the subtraction of time (seconds?)
          from "now", giving a type mismatch.</div>
        <div><br>
        </div>
        <div>Grabber version is:</div>
        <div>
          <div>[mike@hagrid ~]$
            /usr/share/mythtv/metadata/Television/ttvdb.py --version</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" moz-do-not-send="true">thetvdb.com</a></description></div>
          <div>  <version>2.0.0</version></div>
          <div></grabber></div>
        </div>
        <div><br>
        </div>
        <div>Anyone else having this issue? Not seen it mentioned on
          here before.</div>
        <div><br>
        </div>
        <div>Best regards</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    There was a change in October with some new dependencies. Perhaps
    you have an outdated version of a dependency. See article below. It
    has a Troubleshooting section.<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://www.mythtv.org/wiki/TheTVDB_API_v2">https://www.mythtv.org/wiki/TheTVDB_API_v2</a><br>
    <br>
    <br>
  </body>
</html>