Date: Mon, 11 Jul 2022 18:24:47 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [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 Message-ID: <bug-263862-21822-TJXENrwnYr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-263862-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-263862-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263862 --- 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=3D=3D3.0.4', 'console_scripts', 'tvnamer')()) File "/usr/local/lib/python3.9/site-packages/tvnamer/main.py", line 474, = in main tvnamer(paths =3D 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=3DConfig['force_name= '], series_id=3DConfig['series_id']) File "/usr/local/lib/python3.9/site-packages/tvnamer/utils.py", line 641,= in populateFromTvdb show =3D tvdb_instance[force_name or self.seriesname] File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 1152, in __getitem__ sid =3D self._nameToSid(key) File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 1136, in _nameToSid selected_series =3D self._getSeries(name) File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 935, in _getSeries all_series =3D self.search(series) File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 914, in search series_resp =3D self._getetsrc(self.config['url_getSeries'] % (series)) File "/usr/local/lib/python3.9/site-packages/tvdb_api.py", line 874, in _getetsrc src =3D self._loadUrl(url, language=3Dlanguage) 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 =3D self.session.post( File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line = 635, in post return self.request("POST", url, data=3Ddata, json=3Djson, **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 =3D self.send(prep, **send_kwargs) File "/usr/local/lib/python3.9/site-packages/requests_cache/session.py", = line 127, in send cache_key =3D self.cache.create_key(request, **kwargs) TypeError: create_key() got an unexpected keyword argument 'timeout' Please help, thank you! --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263862-21822-TJXENrwnYr>