If you get the following error: ImportError: cannot import name '_to_bytes' from 'requests_cache.backends.base' Use the python-tvdb_api-git AUR instead of the python-tvdb_api one.
Search Criteria
Package Details: tvnamer 3.0.4-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/tvnamer.git (read-only, click to copy) |
---|---|
Package Base: | tvnamer |
Description: | Automatic TV episode file renamer |
Upstream URL: | https://github.com/dbr/tvnamer |
Licenses: | Public Domain |
Submitter: | gim |
Maintainer: | cockroach |
Last Packager: | cockroach |
Votes: | 8 |
Popularity: | 0.000000 |
First Submitted: | 2015-08-30 14:43 (UTC) |
Last Updated: | 2021-09-29 13:25 (UTC) |
Dependencies (3)
- python-tvdb_apiAUR (python-tvdb_api-gitAUR)
- python3 (python)
- python-setuptools (make)
Required by (0)
Sources (1)
hazardfrog commented on 2023-07-11 16:22 (UTC)
cockroach commented on 2020-03-19 10:15 (UTC)
@mijari, I'm not sure where that comes from. The PKGBUILD does not declare a pkgbase.
takazz commented on 2020-03-19 03:30 (UTC)
Getting an error when installing the package: ==> ERROR: pkgbase should not be an array
sweetthdevil commented on 2018-10-30 20:29 (UTC)
Hello, I have the following issues - installed both python2-requests-cache + python2-requests packages and python-requests-cache + python-requests via yaourt but still erros showing.
Starting tvnamer
Found 1 episode
Traceback (most recent call last): File "/usr/bin/tvnamer", line 11, in <module> load_entry_point('tvnamer==2.4', 'console_scripts', 'tvnamer')() File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 436, in main tvnamer(paths = sorted(args)) File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 338, in tvnamer cache=cache, File "/usr/lib/python2.7/site-packages/tvdb_api.py", line 726, in init self.session.remove_expired_responses() File "/usr/lib/python2.7/site-packages/requests_cache/core.py", line 159, in remove_expired_responses self.cache.remove_old_entries(datetime.utcnow() - self._cache_expire_after) File "/usr/lib/python2.7/site-packages/requests_cache/backends/base.py", line 110, in remove_old_entries response, created_at = self.responses[key] File "/usr/lib/python2.7/site-packages/requests_cache/backends/storage/dbdict.py", line 163, in getitem return pickle.loads(bytes(super(DbPickleDict, self).getitem(key))) ImportError: No module named ordered_dict
ritze commented on 2018-04-06 22:01 (UTC)
@gim That's it. Thank you.
gim commented on 2018-04-03 09:58 (UTC) (edited on 2018-04-03 11:00 (UTC) by gim)
@magz @ritze Install python2-requests-cache + python2-requests packages or python-requests-cache + python-requests manually, it should be specified as dependency for tvdb_api (https://aur.archlinux.org/packages/tvdb_api/) but it isn't.
magz commented on 2018-04-03 09:55 (UTC)
I get the same error as ritze.
ritze commented on 2018-04-01 08:24 (UTC)
Since the last update tvnamer crashes:
Traceback (most recent call last): File "/usr/bin/tvnamer", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3088, in <module> @_call_aside File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3072, in _call_aside f(args, *kwargs) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3101, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 574, in _build_master ws.require(requires) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'requests' distribution was not found and is required by tvdb-api</module></module>
Pinned Comments
gim commented on 2018-04-03 09:58 (UTC) (edited on 2018-04-03 11:00 (UTC) by gim)
@magz @ritze Install python2-requests-cache + python2-requests packages or python-requests-cache + python-requests manually, it should be specified as dependency for tvdb_api (https://aur.archlinux.org/packages/tvdb_api/) but it isn't.