[Bug 263862] after updating to python3.8.13 error with tvdb_api

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 08 May 2022 10:15:17 UTC

            Bug ID: 263862
           Summary: after updating to python3.8.13 error with tvdb_api
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: huber.georg@gmail.com

Hi, I recently upgraded from python3.8.12 to 3.8.13.

Now, when I use tvnamer (which uses tvdb_api) I get the following error:

#tvnamer .

Traceback (most recent call last):
  File "/usr/local/bin/tvnamer", line 33, in <module>
    sys.exit(load_entry_point('tvnamer==3.0.4', 'console_scripts',
  File "/usr/local/bin/tvnamer", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/tvnamer/main.py", line 18, in
    import tvdb_api
  File "/usr/local/lib/python3.8/site-packages/tvdb_api.py", line 34, in
    from requests_cache.backends.base import _to_bytes, _DEFAULT_HEADERS
ImportError: cannot import name '_to_bytes' from 'requests_cache.backends.base'

I asked over at github, where tvnamer is maintained and was told that it is not
an error in tvnamer but with tvdb_api, which might have been fixed in September
The tvdb_api port available on freshports was not updated since May 2021

Unfortunately I am not a coder myself, so I cannot apply the patch myself. Is
there a way you can fix this?

Many thanks


You are receiving this mail because:
You are the assignee for the bug.