Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'CachedSession' object has no attribute 'remove_expired_responses' #107

Open
cweiske opened this issue Oct 11, 2024 · 0 comments

Comments

@cweiske
Copy link

cweiske commented Oct 11, 2024

When running tvnamer on Debian 12 I get:

2024-10-11 16:15:32,483 - requests_cache.backends.sqlite - DEBUG - Opening connection to /tmp/tvdb_api--u1000-py3.sqlite:redirects
Traceback (most recent call last):
  File "/usr/bin/tvnamer", line 6, in <module>
    tvnamer.main.main()
  File "/usr/share/tvnamer/main.py", line 474, in main
    tvnamer(paths = sorted(args))
  File "/usr/share/tvnamer/main.py", line 360, in tvnamer
    tvdb_instance = Tvdb(
                    ^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 703, in __init__
    self.session.remove_expired_responses()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'CachedSession' object has no attribute 'remove_expired_responses'

This is probably because the python3-requests-cache package

It looks like CachedSession.remove_expired_responses() was deprecated in 1.0.0 and removed in 1.2.0

as described in https://aur.archlinux.org/packages/plover_plugins_manager#comment-988008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant