Your message dated Tue, 08 Aug 2023 05:51:56 +0000
with message-id <e1qtfdm-000vbf...@fasolo.debian.org>
and subject line Bug#1039968: fixed in tvdb-api 3.1-3
has caused the Debian Bug report #1039968,
regarding python3-tvdb-api: Incompatible with requests-cache version in 
repositories
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1039968: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039968
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-tvdb-api
Version: 3.1-2
Severity: serious
Tags: upstream newcomer
Justification: Policy 2.2.1

Dear Maintainer,

This bug renders the package tvnamer completely useless. It always fails with
this error when trying to connect remotely to TVDB:

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 370, in tvnamer
    processFile(tvdb_instance, episode)
  File "/usr/share/tvnamer/main.py", line 175, in processFile
    episode.populateFromTvdb(tvdb_instance, force_name=Config['force_name'],
series_id=Config['series_id'])
  File "/usr/share/tvnamer/utils.py", line 641, in populateFromTvdb
    show = tvdb_instance[force_name or self.seriesname]
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 1152, in __getitem__
    sid = self._nameToSid(key)
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 1136, in _nameToSid
    selected_series = self._getSeries(name)
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 935, in _getSeries
    all_series = self.search(series)
                 ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 914, in search
    series_resp = self._getetsrc(self.config['url_getSeries'] % (series))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 874, in _getetsrc
    src = self._loadUrl(url, language=language)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 811, in _loadUrl
    self.authorize()
  File "/usr/lib/python3/dist-packages/tvdb_api.py", line 859, in authorize
    r = self.session.post(
        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests_cache/session.py", line 115, in
request
    return super().request(method, url, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 587, in
request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests_cache/session.py", line 127, in
send
    cache_key = self.cache.create_key(request, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: create_key() got an unexpected keyword argument 'timeout'

This is due to changes in the API to requests-cache. It seems upstream isn't
updating the code anymore but I've created a PR anyway:
https://github.com/dbr/tvdb_api/pull/105

I've tried these changes in Debian Boookworm and they fix this issue and others
related to changes in requests-cache.

I hope someone can patch these changes into the Debian sources.

Thanks.
Cheers.


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-tvdb-api depends on:
ii  python3                 3.11.2-1+b1
ii  python3-requests        2.28.1+dfsg-1
ii  python3-requests-cache  0.9.8-1

python3-tvdb-api recommends no packages.

python3-tvdb-api suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: tvdb-api
Source-Version: 3.1-3
Done: Sandro Tosi <mo...@debian.org>

We believe that the bug you reported is fixed in the latest version of
tvdb-api, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1039...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <mo...@debian.org> (supplier of updated tvdb-api package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 08 Aug 2023 01:32:01 -0400
Source: tvdb-api
Architecture: source
Version: 3.1-3
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <mo...@debian.org>
Changed-By: Sandro Tosi <mo...@debian.org>
Closes: 1039968
Changes:
 tvdb-api (3.1-3) unstable; urgency=medium
 .
   * debian/control
     - run wrap-and-sort
     - add pytest, pytest-cov, pytest-env, requests, requests-cache to b-d,
       needed by tests
     - add, commented out, Testsuite: autopkgtest-pkg-pybuild, waiting for
       pytest-env
   * debian/patches/PR105.patch
     - add patch to make this module compatible with recent requests_cache
       releaess;  Closes: #1039968
   * debian/rules
     - only run tests during autopkgtest
   * debian/pybuild.testfiles
     - setup necessary tests files for autopkgtest
Checksums-Sha1:
 f7e7db7c870ba7b942b52e71a6a569daa92c2a91 2073 tvdb-api_3.1-3.dsc
 30f0144633fc8ded9ee8712525ef3ec8cb71e99b 4996 tvdb-api_3.1-3.debian.tar.xz
 9cb9402a0eab7b8c0840071dcd4314ca39bb4f92 8229 tvdb-api_3.1-3_source.buildinfo
Checksums-Sha256:
 031df81be53961eee0063fa9cd5f846b04a3bf69d57267fdefef5c9f4b2d7c73 2073 
tvdb-api_3.1-3.dsc
 f7d71da1dbb8109e81bf162ff7e897c0a817e915ee364003b8731c7d4c56b5b4 4996 
tvdb-api_3.1-3.debian.tar.xz
 ed692521d7643db132bd6aa1b455703253ca28a41e0c2c9b0b7cb32013849973 8229 
tvdb-api_3.1-3_source.buildinfo
Files:
 2f6f5379c5e75396d2d24602affa9b34 2073 python optional tvdb-api_3.1-3.dsc
 09e1ce730a51d8872315c82678f19ab4 4996 python optional 
tvdb-api_3.1-3.debian.tar.xz
 8233d4bcbdcb37de1d6ffd65b4f69582 8229 python optional 
tvdb-api_3.1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAmTR020ACgkQh588mTgB
qU8XphAAti3lCIwZeIPwBZQqbnmwYpNYUaOA7N2tsVmDm29jPlScKf2/7NjrNWl5
IOnkoIdWIPQtlNnhjkl99honqI89AsVraZOJgGrQ6k1J486q6oZTy+aYp4c4zLU7
mqG38b5ka5DMVsJEBSBmtFeIKb9tIaMYM9/gjNkog/luW9CpKWZ2UJaEaLRfLI7i
5yUji5ARm+1byUbst/R+Vzn462CdTOMfS5s+oh4g+YVZetgIVHw1m7o85WiT2g8q
KZkHEEecZxd0j+eke493HJdfbvrWeKkfzPjX9mF1pvZBQ8RwK4kKXIERZQ7FiBSo
wyMeFpYQtvHvEtJGEw/7AjlfGq8O+/GBD9RP7oquUXDjtejug0nqEFInwc68yjRL
zVYcnPMgmLy8q2GD9JZ+KexM6RqtqEQb1dzgOX0PwtBZ6jbFUelvK2eJZOJ4H0lY
hBTJXLlXU8KgJYHsTCl7hm6oH8Whiyu+0tvuJSbhMPfnGZptgfFz16cbWCIwjCLH
Axmtuph2UvHCxZkyFOtIvBr3GRxpKZqszbzBXlur1+dRCW1jcfN/ep/OpM/AsjRD
qH2u+rcEcgMM3kemCKpHDkBo0wZb3z9R/hoFuMUiOLrcytLpjYi2Aye4D529ez9z
6QPvqXum/GyXvegXQ2ZQS4q+L0n2TFKrJhHok5pBwY0aB3QuUpk=
=z7gK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to