[mythtv-users] Important: Changes to Metadata lookup in March 2021

Hika van den Hoven hikavdh at gmail.com
Wed Feb 24 22:39:33 UTC 2021

Hoi John,

Wednesday, February 24, 2021, 10:54:36 PM, you wrote:

> I'm running 0.29 on mythbuntu 16.04. All the mythtv python libs are in
> the python2.7 dist-packages so that's where I installed the tmdb3 and 
> tvmaze files. It appears that tvmaze.py requires python 3 so I just 
> tried testing tmdb3.py but it bombed trying to retrieve the episode data:

> Traceback (most recent call last):
>    File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 159, in
> <module>
>      sys.exit(main("television",'tmdb3tv.py'))
>    File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 133, in
> main
>      xml = buildEpisode(args[0:2], opts)
>    File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/lookup.py", line
> 300, in buildEpisode
>      if query.isnumeric():
> AttributeError: 'str' object has no attribute 'isnumeric'

> which I guess indicates a python2 vs python3 mismatch.

> John

To test tvmaze.py with python2, change the first line:

#!/usr/bin/env python3


#!/usr/bin/env python

or if your system is not set to default to python2:

#!/usr/bin/env python2

I'll come back later with my testresults.

Tot mails,
  Hika                            mailto:hikavdh at 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

More information about the mythtv-users mailing list