[mythtv-users] ttvdb

mythtv mythtv at mdabbs.org
Thu Sep 16 19:11:14 UTC 2021


On 9/16/21 1:02 PM, Roland Ernst wrote:
> Until this issue is fixed in requests_cache_compatability.py 
> <https://github.com/MythTV/mythtv/blob/fixes/31/mythtv/bindings/python/MythTV/ttvdb/requests_cache_compatability.py#L49> 
> ,
> you need to downgrade to requests-cache <  0.8.0 , which was released: 
> Sep 7, 2021.
> Note: requests-cache  0.8.1 was released yesterday.
> 
> Before downgrading, please report back if this change helps in above 
> linked file:
> Change
> requests_cache.core.CachedSession.remove_expired_responses = 
> remove_expired_responses
> to
> requests_cache.CachedSession.remove_expired_responses = 
> remove_expired_responses
> and report back.
> 
> 
> 

Just making that change...

Traceback (most recent call last):
   File "/usr/local/share/mythtv/metadata/Television/ttvdb.py", line 
2717, in <module>
     sys.exit(main())
   File "/usr/local/share/mythtv/metadata/Television/ttvdb.py", line 
2383, in main
     t = Tvdb(banners=False,
   File "/usr/lib/python3.9/site-packages/MythTV/ttvdb/tvdb_api.py", 
line 701, in __init__
     self.session.remove_expired_responses()
   File 
"/usr/lib/python3.9/site-packages/MythTV/ttvdb/requests_cache_compatability.py", 
line 38, in remove_expired_responses
     if not self._cache_expire_after:
AttributeError: 'CachedSession' object has no attribute 
'_cache_expire_after'


More information about the mythtv-users mailing list