[Bug 263862] www/py-tvdb_api: Fails to run after www/py-requests-cache update: ImportError: cannot import name '_to_bytes' from 'requests_cache.backends.base
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Jul 2022 18:24:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263862
--- Comment #18 from huber.georg@gmail.com ---
(In reply to huber.georg from comment #17)
Hi, when Portmaster upgraded the ports to py39, I receice the same error as in
my comment #2.
I have installed
py39-requests-2.28.0 Python HTTP for Humans
py39-requests-cache93-0.9.3 Transparent persistent cache for the requests
library (0.9.3 branch)
py39-tvdb_api-3.1.0_2 API interface to TheTVDB.com
py39-tvnamer-3.0.4 Automatically names downloaded/recorded
TV-episode
unfortunately I am clueless, the error is (again):
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',
'tvnamer')())
File "/usr/local/lib/python3.9/site-packages/tvnamer/main.py", line 474, in
main
tvnamer(paths = sorted(args))
File "/usr/local/lib/python3.9/site-packages/tvnamer/main.py", line 370, in
tvnamer
processFile(tvdb_instance, episode)
File "/usr/local/lib/python3.9/site-packages/tvnamer/main.py", line 175, in
processFile
episode.populateFromTvdb(tvdb_instance, force_name=Config['force_name'],
series_id=Config['series_id'])
File "/usr/local/lib/python3.9/site-packages/tvnamer/utils.py", line 641, in
populateFromTvdb
show = tvdb_instance[force_name or self.seriesname]
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 1152, in
__getitem__
sid = self._nameToSid(key)
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 1136, in
_nameToSid
selected_series = self._getSeries(name)
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 935, in
_getSeries
all_series = self.search(series)
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 914, in
search
series_resp = self._getetsrc(self.config['url_getSeries'] % (series))
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 874, in
_getetsrc
src = self._loadUrl(url, language=language)
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 811, in
_loadUrl
self.authorize()
File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 859, in
authorize
r = self.session.post(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 635,
in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests_cache/session.py", line
115, in request
return super().request(method, url, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 587,
in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-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'
Please help, thank you!
--
You are receiving this mail because:
You are on the CC list for the bug.