<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <p> </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hi Folks!</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Trying to update my
      system for using the new TV show information and artwork metadata
      per
      <a
        href="https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021">https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021</a>
      and the forum posts. I’m not understanding something somewhere.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">My system uses
      MythTV version 30 under Ubuntu 18.04 so following Hika’s “Manual
      Installation for older versions” portion. (Thank you!). I’ve
      posted my notes for the 3<sup>rd</sup> and 4<sup>th</sup> update
      attempts at<font face="Liberation Sans Narrow, sans-serif"><font
          style="font-size: 11pt" size="2">
          <a href="https://pastebin.com/hHRBqeDK">https://pastebin.com/hHRBqeDK</a>
          .</font></font> Unfortunately the original notes were in
      LibreOffice
      and PasteBin only accepts text so all my indents, line spacings,
      etc.
      are missing. I can e-mail the original as an attachment or convert
      to PDF if someone wants to view. Will try to keep things shorter
      for
      here.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">I did update from
      Python 2.7.17 to Python 3.6.9. Also installed git 2.17.1</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: Make
      directory
      where to place it and go there</p>
    <p style="margin-left: 0.49in">run: <b>sudo </b>git clone
      <a href="https://github.com/MythTV/mythtv.git">https://github.com/MythTV/mythtv.git</a>
      mythtv</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Me: So created git
      ==> $HOME/git    cd to there and cloned.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: install the
      following python modules if not yet there: </p>
    <pre class="western">       <a href="https://pypi.org/project/mysqlclient/">https://pypi.org/project/mysqlclient/</a>    (etc.)
</pre>
    <p style="margin-bottom: 0in; line-height: 100%">
      Me: At the end of attempt #3 found these files had not been
      installed
      – thought they would be so why originally skipped.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"> At
      $HOME/git/mythtv/mythtv/bindings/python run <i>sudo python3
        ./setup.py install</i></p>
    <p style="margin-bottom: 0in; line-height: 100%"> No apparent
      whinings (error messages) from Terminal.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: Go to that
      directory </p>
    <p style="margin-bottom: 0in; line-height: 100%">Me: Assuming
      $HOME/git/mythtv/mythtv/bindings/python </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: mv tmdb3
      tmdb3.bak </p>
    <p style="margin-bottom: 0in; line-height: 100%">Me: During Trials 1
      and 2 I moved but didn’t make sense to, plus later steps whined
      about tmdb3/tmdb3 missing. In Trials 3 and 4 tried cp and no
      whinings but…</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: copy from the
      above downloaded git files the tmdb3 and tvmaze directory into
      this
      MythTV directory: </p>
    <pre class="western">      sudo cp -rp ...mythtv/mythtv/bindings/python/tmdb3/tmdb3/ .
      sudo cp -rp ...mythtv/mythtv/bindings/python/tvmaze/ .</pre>
    <p style="margin-bottom: 0in; line-height: 100%">
      Me: Now I’m really confused as to what subdir I should be in!
      Assuming $HOME/git/mythtv/mythtv/bindings/python but the second
      command gives an error: <font face="Liberation Sans Narrow,
        sans-serif">cp:
        '/home/barry/git/mythtv/mythtv/bindings/python/tvmaze/' and
        './tvmaze' are the same file</font>”</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika has a section
      on Python modules again. And I just noticed was python2 (earlier
      python3). I’m still confused which subdir I should be in.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Hika: Go to the
      location of the graberfiles in:
      /usr/share/mythtv/metadata/Television/</p>
    <p style="margin-bottom: 0in; line-height: 100%">Me: cd over to
      there, do the two cp steps, substituting ‘...’ to ‘$HOME/git’ – no
      whinings.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Then we get to
      Hika’s section on checking the first line of tvmaze.py and
      tmdb3tv.py. Assuming I want python3 as updated to Python 3.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">Also noted <b>/usr/share/mythtv/metadata/Movie/tmdb3.py</b><span
        style="font-weight: normal"> has only ‘python’. Switched that to
        ‘python3’.</span></p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">The testing at the
      very end – probably tells where and what I screwed up:</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p>Tests: </p>
    <pre class="western">   /usr/share/mythtv/metadata/Television/tvmaze.py -t
   /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
   /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk</pre>
    <p style="margin-bottom: 0in; line-height: 100%">
      <br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">barry@M58:/usr/share/mythtv/metadata/Movie$
      /usr/share/mythtv/metadata/Television/tvmaze.py -t</p>
    <p style="margin-bottom: 0in; line-height: 100%">Failed to import
      python lxml library.</p>
    <p style="margin-bottom: 0in; line-height: 100%">Failed to import
      MythTV bindings. Check your `configure` output to make sure
      installation was not disabled due to external dependencies</p>
    <p style="margin-bottom: 0in; line-height: 100%">Failed to import
      PyTVmaze library. This should have been included with the python
      MythTV bindings.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">sudo shutdown -r
      now ==> reload stuff?? Nope. :(</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><later>
      trying this test:</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">barry@M58:~$
      /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M
      Monk</p>
    <p style="margin-bottom: 0in; line-height: 100%">Traceback (most
      recent call last):</p>
    <p style="margin-bottom: 0in; line-height: 100%"> File
      "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line
      159, in <module></p>
    <p style="margin-bottom: 0in; line-height: 100%">
      sys.exit(main("television",'tmdb3tv.py'))</p>
    <p style="margin-bottom: 0in; line-height: 100%"> File
      "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line
      79, in main</p>
    <p style="margin-bottom: 0in; line-height: 100%"> from
      MythTV.tmdb3.lookup import timeouthandler</p>
    <p style="margin-bottom: 0in; line-height: 100%"> File
      "/usr/local/lib/python3.6/dist-packages/MythTV/__init__.py",
      line 37, in <module></p>
    <p style="margin-bottom: 0in; line-height: 100%"> from
      .connections import dbmodule</p>
    <p style="margin-bottom: 0in; line-height: 100%"> File
      "/usr/local/lib/python3.6/dist-packages/MythTV/connections.py",
      line 17, in <module></p>
    <p style="margin-bottom: 0in; line-height: 100%"> import
      lxml.etree as etree</p>
    <p style="margin-bottom: 0in; line-height: 100%">ModuleNotFoundError:
      No module named 'lxml'</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">So as you can
      probably tell I’m almost clueless and have to be told which end of
      the spoon to pick up. <joke> I know way too long a post but
      I
      have no idea where I’m going wrong so no idea where to start nor
      end.</p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p style="margin-bottom: 0in; line-height: 100%">TIA,</p>
    <p style="margin-bottom: 0in; line-height: 100%">Barry </p>
    <p style="margin-bottom: 0in; line-height: 100%"><br>
    </p>
    <p>
      <style type="text/css">
                pre.cjk { font-family: "Courier New", monospace }
                p { margin-bottom: 0.1in; line-height: 115% }
                a:link { so-language: zxx }</style></p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>