[mythtv-users] ttvdb4.py issuing an error

John Hoyt john.hoyt at gmail.com
Sun Dec 4 13:18:03 UTC 2022


On Sun, Dec 4, 2022 at 7:38 AM John Hoyt <john.hoyt at gmail.com> wrote:

> I've been getting the following error with ttvdb4.py on macOS.  I've
> checked, and all of the requests_cache dependencies appear to be
> installed.  Any guess could be causing the error?
>
> /Applications/
> mythfrontend.app/Contents/Resources/share/mythtv/metadata/Television/ttvdb4.py
> -l en -a US -D 76164 1 1
> Traceback (most recent call last):
>   File "/Applications/
> mythfrontend.app/Contents/Resources/share/mythtv/metadata/Television/ttvdb4.py",
> line 284, in <module>
>     main()
>   File "/Applications/
> mythfrontend.app/Contents/Resources/share/mythtv/metadata/Television/ttvdb4.py",
> line 188, in main
>     import requests_cache
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/__init__.py",
> line 7, in <module>
>     from .backends import *
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/backends/__init__.py",
> line 7, in <module>
>     from .base import KEY_FN, BaseCache, BaseStorage, DictStorage
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/backends/base.py",
> line 21, in <module>
>     from ..serializers import init_serializer
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/serializers/__init__.py",
> line 6, in <module>
>     from .preconf import (
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/serializers/preconf.py",
> line 37, in <module>
>     base_stage = CattrStage()  #: Base stage for all serializer pipelines
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py",
> line 32, in __init__
>     self.converter = init_converter(factory)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py",
> line 48, in init_converter
>     converter = factory(omit_if_default=True)
> TypeError: Converter.__init__() got an unexpected keyword argument
> 'omit_if_default'
>
> Installed python dependencies
>
> Build Dependencies:   py310-setuptools, py310-build, py310-installer,
> py310-poetry-core
> Library Dependencies: py310-appdirs, py310-attrs, py310-cattrs,
> py310-requests, py310-url-normalize, py310-urllib3, python310
>
>
I did notice the following in the build logs - probably unrelated, but also
worth noting that something will need to be update for newer versions of
python in the mythtv build environment

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C bindings/python
install INSTALL_ROOT=
/opt/local/bin/python3.10 setup.py install --skip-build --root="/"
--prefix="/Users/jhoyt/mythtv-32/32-osx-64bit"
running install
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
  warnings.warn(
running install_lib
running install_egg_info
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:123:
PkgResourcesDeprecationWarning: 32.0.-1 is an invalid version and will not
be supported in a future release
  warnings.warn(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20221204/d1ff9bc8/attachment.htm>


More information about the mythtv-users mailing list