[mythtv-users] ttdvb.py failing

Duncan Brown mythtv2 at duncb.co.uk
Tue Mar 6 11:54:08 UTC 2018


I've started getting this error when running any ttdvb.py

! Error: request() got an unexpected keyword argument 'json'
Traceback (most recent call last):
   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2578, in 
   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2366, in main
     t._getShowData(series_season_ep[0], opts.language)
   File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", 
line 1052, in _getShowData
     self.config['url_seriesInfo'] % sid
   File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", 
line 861, in _getetsrc
     src = self._loadUrl(url, language=language)
   File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", 
line 808, in _loadUrl
   File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", 
line 848, in authorize
     r = self.session.post('https://api.thetvdb.com/login', 
json=self.config['auth_payload'], headers=self.headers)
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
555, in post
     return self.request('POST', url, data=data, json=json, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'

Hunting for the arror message I've found a few references to an out of 
date requests package, but a pip upgrade on it made no difference

Any ideas?



More information about the mythtv-users mailing list