dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
909 stars 115 forks source link

ValueError: unsupported pickle protocol: 3 #149

Closed lozbrown closed 5 years ago

lozbrown commented 5 years ago

I get the following error after pip upgrade to 2.5

`Loading config: /home/loz/.tvnamer.json ####################

Starting tvnamer

Found 4 episodes

Traceback (most recent call last): File "/usr/local/bin/tvnamer", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 449, in main tvnamer(paths = sorted(args)) File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 351, in tvnamer cache=cache, File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 726, in init self.session.remove_expired_responses() File "/usr/local/lib/python2.7/dist-packages/requests_cache/core.py", line 159, in remove_expired_responses self.cache.remove_old_entries(datetime.utcnow() - self._cache_expire_after) File "/usr/local/lib/python2.7/dist-packages/requests_cache/backends/base.py", line 110, in remove_old_entries response, created_at = self.responses[key] File "/usr/local/lib/python2.7/dist-packages/requests_cache/backends/storage/dbdict.py", line 163, in getitem return pickle.loads(bytes(super(DbPickleDict, self).getitem__(key))) ValueError: unsupported pickle protocol: 3`

lozbrown commented 5 years ago

This was resolved by setting the for /usr/bin/python to point to pythin3.5 in my system, not sure why this application doesn't default to that