Mailing List Archive

Re: Metadata Lookup - updating problems
Hi Hika!
> Barry, if you read properly you either install the complete 31
> bindings under python3 or you update the existing bindings under
> python2. Not both!
>
> And next you update the grabberfiles themselves.
>
> Also look at the indentations!


Thanks for the reply. One of the things I noted was your “look at the
indentations” – what indentations?? I had done a copy-and-paste from the
webpage to a LibreOffice document – not sure if the indents didn’t
import properly or just hard to see with the font I use. Very clear on
the webpage and so printed that to work from.


Also didn’t understand the either version 31 or update those (so my 30)
under Python2.


Will update with hopefully good news later.


Thanks again!

Barry
Re: Metadata Lookup - updating problems [ In reply to ]
Hoi Barry,

Sunday, February 28, 2021, 4:30:42 PM, you wrote:




> Hi Hika!
>
>
> Barry, if you read properly you either install the complete 31
> bindings under python3 or you update the existing bindings under
> python2. Not both!

> And next you update the grabberfiles themselves.

> Also look at the indentations!
>
>
>

>
>
> Thanks for the reply. One of the things I noted was your
> “look at the indentations” – what indentations?? I had done a
> copy-and-paste from the webpage to a LibreOffice document –
> not sure if the indents didn’t import properly or just hard to
> see with the font I use. Very clear on the webpage and so printed that to work from.
>

>
>
> Also didn’t understand the either version 31 or update those (so my 30) under Python2.
>

>
>
> Will update with hopefully good news later.
>

>
>
> Thanks again!
>
> Barry
>
>

The instruction in my mail earlier is logically grouped with
indentations. I assume Peter kept that when he added it to the
webpage. But otherwise look at my mail under "Important: Changes to
Metadata lookup in March 2021" from 25/2 19:45 CET

I do not understand what there is not to understand about either or.
It's either the one or the other and not both. And very obviously you
started with the first and then continued with the second!


>




Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Metadata Lookup - updating problems [ In reply to ]
Hi Hika!

Follow-up to the earlier message...
> Barry, if you read properly you either install the complete 31
> bindings under python3 or you update the existing bindings under
> python2. Not both!
>
> And next you update the grabberfiles themselves.
>
> Also look at the indentations!


Fiddled with your instructions on the webpage – things making more sense!


I removed my directory where the git clone (thinking maybe
‘contaminated’ by my earlier fiddlings) was and re-installed. Ignored
the Python3 portions as sticking with Version 30.


Did go through the steps of installing the python modules but Terminal
responded with something indicating already installed so skipped the
“sudo python2 ./setup.py install” instruction but now wondering if
should have done anyway due to an error in the Testing at the very end.


Went on to the grabberfiles section. (Need a test section before
continuing for us cookbookers!) May have screwed up something here as
‘if updated Python2 then 1^st line has Python2’. /tvmaze.py/ had python3
so changed to python2. /tmdb3tv.py/ had just python so added a 2 (so now
python2). Same for /tmdb3.py/: originally just python, added a 2.


The three Tests at the end: one out of three is good for me! <g>


barry@M58:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -t

Failed to import PyTVmaze library. This should have been included with
the python MythTV bindings.


/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk

“Thousands” of HTML-looking lines – it seems to have pulled stuff on
monkeys (Monk).


/usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk

barry@M58:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US
-M Monk

ERROR: <type 'exceptions.ImportError'> : No module named dateutil



So we’re getting there! I’m going to do some additional checks after
lunch – like run that ‘./setup.py’ command.


Barry
Re: Metadata Lookup - updating problems [ In reply to ]
Hoi Barry,

Sunday, February 28, 2021, 6:40:56 PM, you wrote:




> Hi Hika!

>
> Follow-up to the earlier message...
>
>
> Barry, if you read properly you either install the complete 31
> bindings under python3 or you update the existing bindings under
> python2. Not both!

> And next you update the grabberfiles themselves.

> Also look at the indentations!
>
>
>

>
>
> Fiddled with your instructions on the webpage – things making more sense!
>

>
>
> I removed my directory where the git clone (thinking maybe
> ‘contaminated’ by my earlier fiddlings) was and re-installed.
> Ignored the Python3 portions as sticking with Version 30.
>

>
>
> Did go through the steps of installing the python modules but
> Terminal responded with something indicating already installed
> so skipped the “sudo python2 ./setup.py install”
> instruction but now wondering if should have done anyway due
> to an error in the Testing at the very end.
>

>
>
> Went on to the grabberfiles section. (Need a test section
> before continuing for us cookbookers!) May have screwed
> up something here as ‘if updated Python2 then 1st line has
> Python2’. tvmaze.py had python3 so changed to python2.
> tmdb3tv.py had just python so added a 2 (so now
> python2). Same for tmdb3.py: originally just python, added a 2.
>

>
>
> The three Tests at the end: one out of three is good for me! <g>
>

>
>
> barry@M58:~$
> /usr/share/mythtv/metadata/Television/tvmaze.py -t
>
> Failed to import PyTVmaze library. This should have been
> included with the python MythTV bindings.
>

This is a bit tricky error as it does not give the real reason.
Probably the same as with the third test.

>
>
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>
> “Thousands” of HTML-looking lines – it seems to have pulled stuff on monkeys (Monk).
>

>
>
> /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
>
> barry@M58:~$
> /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
>
> ERROR: <type 'exceptions.ImportError'> : No module named dateutil
>

OK, you still have to install the datutil module for python2

>
>

>
>
> So we’re getting there! I’m going to do some
> additional checks after lunch – like run that ‘./setup.py’ command.
>

>
>
> Barry
>
>




>




Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Metadata Lookup - updating problems [ In reply to ]
On Sun, Feb 28, 2021 at 6:43 PM Barry Martin <barry3martin@gmail.com> wrote:

>
> Hi Hika!
>
> Follow-up to the earlier message...
>
> Barry, if you read properly you either install the complete 31
> bindings under python3 or you update the existing bindings under
> python2. Not both!
>
> And next you update the grabberfiles themselves.
>
> Also look at the indentations!
>
>
> Fiddled with your instructions on the webpage – things making more sense!
>
>
> I removed my directory where the git clone (thinking maybe ‘contaminated’
> by my earlier fiddlings) was and re-installed. Ignored the Python3 portions
> as sticking with Version 30.
>
>
> Did go through the steps of installing the python modules but Terminal
> responded with something indicating already installed so skipped the “sudo
> python2 ./setup.py install” instruction but now wondering if should have
> done anyway due to an error in the Testing at the very end.
>
>
> Went on to the grabberfiles section. (Need a test section before
> continuing for us cookbookers!) May have screwed up something here as ‘if
> updated Python2 then 1st line has Python2’. *tvmaze.py* had python3 so
> changed to python2. *tmdb3tv.py* had just python so added a 2 (so now
> python2). Same for *tmdb3.py*: originally just python, added a 2.
>
>
> The three Tests at the end: one out of three is good for me! <g>
>
>
> barry@M58:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -t
>
> Failed to import PyTVmaze library. This should have been included with the
> python MythTV bindings.
>
>
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>
> “Thousands” of HTML-looking lines – it seems to have pulled stuff on
> monkeys (Monk).
>
>
> /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
>
> barry@M58:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US
> -M Monk
>
> ERROR: <type 'exceptions.ImportError'> : No module named dateutil
>
>
>
> So we’re getting there! I’m going to do some additional checks after
> lunch – like run that ‘./setup.py’ command.
>
>
> Barry
>
>
>
Yes, I saw this error the first time on a python3.9 test installation.
Ubuntu installs this python package `dateutil` automatically with python.
Other distros don't.
Until this is fixed, I recommend to install this package for your active
python environment.
Re: Metadata Lookup - updating problems [ In reply to ]
Hi Hika!


Not going to quote as replying off-line after reading your reply at the
website (rather than wait for the e-mail to come through tomorrow).
Summary is my first test error was “a bit tricky error as does not give
the real reason”, probably due to my third error.


My third error was I still needed to install the dateutil module for
Python2.


As noted in a previous post all the modules were installed. RCRERNST’s
post to me indicated having a similar problem with Python 3.9 under
Ubuntu; install in an ‘active python environment’.


The ‘pip’ method didn’t work. Recalled had seen some downloads on the
Python website. Downloaded the two for the dateutil module – one tar.gz
and the other whl. Vaguely familiar with tar.gz so extracted that one.
Ah! There is setup.py in there! /sudo python2 ./setup.py install/ ==>
looked like installed something!


FWIW the steps and notes I used to install dateutil – may help somebody:

*Manually install: *

*1. **At Python site download the actual file. [.*D/L to own subdir ==>
Downloads/Python or something to make easier to work with later*].*

*2. **Extract the file [*within the special subdir OK*].*

*3. cd into the first/main level of the extract – verify setup.py is in
there.*

*4**a**. **Open Terminal – pull a first dir level file into Terminal to
obtain path; trim and put ‘cd’ in front – now in that extract.*

*4b. **Now the */sudo python2 ./setup.py install/


...Looks like the next steps don’t need to be updated so on to the Tests
– can always go back.


First test: (….tvmaze.py -t) ==> “Everything appears in order”
<cartwheels!!>

Second test: (tmdb3tv….Monk) ==> get the HTML-looking output which seems
to be good.

Third test: (tvmaze...Monk) ==> drumroll please! also HTML-looking
output! Woo-hoo!


Now for the grand test: mythfrontend (at Terminal – easier to exit than
the GUI). Get to Artwork and Data Sources --- both prepopulated to
TheMovieDB and the TV source can be switched to TVmaze.com.


OK: just noticed an error: this Frontend is asking “is mythfilldatabase
running?” I’m going to say that’s temporarily correct because the
Backend has not been updated yet. (Please verify!)


Thanks for your assistance – the problems I was having was mainly not
knowing. To me made sense to upgrade to Python3 while upgrading the
metadata. The either/or’s were there but I misinterpreted – sometimes
one doesn’t want to upgrade an OS, etc., because a programme won’t work
under the new. With MythTV v30 I needed to stay with Python2.


Barry
Re: Metadata Lookup - updating problems [ In reply to ]
Hi Roland!

> Yes, I saw this error the first time on a python3.9 test installation.
> Ubuntu installs this python package `dateutil` automatically with python.
> Other distros don't.
> Until this is fixed, I recommend to install this package for your active
> python environment.

Ah! This gave me the clue to my module install problem. ‘pip’ said
dateutil was already installed; the metadata update said it wasn’t. As I
said in my reply to Hika, installed from the download option – problem
solved!


Thanks!

Barry