[SOLVED] Metadata Lookup Fails

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
Vaska
Junior
Posts: 57
Joined: Fri Sep 01, 2017 11:09 pm
Canada

[SOLVED] Metadata Lookup Fails

Post by Vaska »

Hi - I'm having trouble with metadata lookups. Everything was working fine for me just last week. I’m running the latest 0.28-fixes branch (currently v0.28.1-45-g73cf7474ad) on Gentoo with both python 2.7 and 3.4 on the system (2.7 is the default).

This is what happens when I try to run the lookup command manually.

Code: Select all

/usr/local/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -M "Bizarre Foods: Delicious Destinations"
Traceback (most recent call last):
  File "/usr/local/share/mythtv/metadata/Movie/tmdb3.py", line 322, in <module>
    main()
  File "/usr/local/share/mythtv/metadata/Movie/tmdb3.py", line 284, in main
    from MythTV.tmdb3 import set_key, set_cache, set_locale
  File "/usr/lib64/python2.7/site-packages/MythTV/__init__.py", line 36, in <module>
    from .utility import *
  File "/usr/lib64/python2.7/site-packages/MythTV/utility/__init__.py", line 2, in <module>
    from .enum import EnumValue, Enum, BitwiseEnum
  File "/usr/lib64/python2.7/site-packages/MythTV/utility/enum.py", line 9, in <module>
    from builtins import int
ImportError: No module named builtins
If someone could offer me a pointer to get me in the right direction I would really appreciate it. I just have no idea what to do. I've tried rebuilding and reinstalling the python bindings but that doesn't seem to help.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Metadata Lookup Fails

Post by bill6502 »

Answered on IRC, but the solution is adding the Python future package
(which has the builtins module.)

Other Python packages involved are urlllib3, requests and requests-cache.

Ref: #13084 which provides fixes for ttvdb.py's conversion to JSON.
TTVDB is turning off the existing V1 XML API on 9/30/2017.
Vaska
Junior
Posts: 57
Joined: Fri Sep 01, 2017 11:09 pm
Canada

[SOLVED] Metadata Lookup Fails

Post by Vaska »

Thanks again for the help on IRC bill6502. As described, I was able to fix the issue by emerging dev-python/requests-cache and dev-python/future.
User avatar
diyhouse
Senior
Posts: 223
Joined: Mon Mar 31, 2014 9:42 am
Great Britain

Re: [SOLVED] Metadata Lookup Fails

Post by diyhouse »

Would someone be so kind as to include the link to the fix,.. I have trawled the IRC stuff and cannot find the required stuff referring to python future,.. no irc search as far as I can see,.. ( I will of course stand corrected if required )

I assume,... this python issue is the cause of my "silence" failing to run,.. I am running 0.28 on a 16.04 Ubuntu

Many Tx
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: [SOLVED] Metadata Lookup Fails

Post by stuarta »

It's linked from the front page of the wiki https://www.mythtv.org/wiki/TheTVDB_API_v2
User avatar
diyhouse
Senior
Posts: 223
Joined: Mon Mar 31, 2014 9:42 am
Great Britain

Re: [SOLVED] Metadata Lookup Fails

Post by diyhouse »

Tx Stuart,..
As a final note to this thread,.. regarding my question on "Silence" not working,... Yes the python fixes/updates resolve the issues with Silence to.
And all is now well in the land of mythTV..
Tx Guys n Gals..
dcrobertson01
Newcomer
Posts: 8
Joined: Mon Aug 31, 2015 10:45 pm
New Zealand

Re: [SOLVED] Metadata Lookup Fails

Post by dcrobertson01 »

The python stuff needs to be on the front end as well. Not clear in the documents.
Post Reply