[mythtv-users] tvmaze -t causing failure in mythmetadatalookup

Simon Kranz smkranz0506 at gmail.com
Tue Apr 13 22:29:31 UTC 2021


On Wed, 14 Apr 2021 at 04:28, Roland Ernst <rcrernst at gmail.com> wrote:
>
>
>
> On Tue, Apr 13, 2021 at 5:28 PM Hika van den Hoven <hikavdh at gmail.com> wrote:
>>
>>
>> > In my case, tvmaze.py -t fails as it says "Failed to import PyTVmaze
>> > library. This should have been included with the python MythTV
>> > bindings."  Then the job exits.
>>
>
> This can be related to the bug #347 at
> https://github.com/MythTV/mythtv/issues/347
>
> Open a terminal, and enter the following commands:
>>
>> python3
>> Python 3.8.5 (default, Jan 27 2021, 15:41:15)
>> [GCC 9.3.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import lxml
>> >>> import requests
>> >>> import requests_cache
>> >>> import MythTV
>> >>> from MythTV.tvmaze import tvmaze_api
>> >>>
>
>
> This should give you a python traceback if one of these modules can't be found.
> Try to install the missing module
>
> I suspect, that the package 'python3-dateutil' is missing, according to issue #347.
>
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


Hello,

yes, thanks, the dateutil module was missing:

xxxxx at xxxxxxxxxxx:~$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml
>>> import requests
>>> import requests_cache
>>> import MythTV
>>> from MythTV.tvmaze import tvmaze_api
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/MythTV/tvmaze/tvmaze_api.py",
line 38, in <module>
    from dateutil import parser
ModuleNotFoundError: No module named 'dateutil'

As i don't have any problem with adding these modules for both python2
and python3, i simply installed both the python-dateutil and
python3-dateutil packages.  Even when the bugfix for #347 comes
through on my next mythtv update via deb-multimedia, the change will
be seamless.

I then removed my comments in the original script to allow the "-t"
option to actually function and it's all ok now.

thanks!

Simon


More information about the mythtv-users mailing list