{boobank] Bug(boursorama): the JSON object must be str, not 'bytes'
Since few days, Boursorama module (last devel version) fails with bug: the JSON object must be str, not 'bytes'
Full debug message below:
boobank> list
Account Balance Coming
------------------------------------------+----------+----------
2020-09-24 22:52:15,106:DEBUG:bcall:2.1:bcall.py:92:backend_process <Backend 'boursorama'>: Calling function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7fcec7ad7b70>>
2020-09-24 22:52:15,119:DEBUG:requests.packages.urllib3.util.retry:2.1:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2020-09-24 22:52:15,120:DEBUG:requests.packages.urllib3.util.retry:2.1:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2020-09-24 22:52:15,127:DEBUG:bcall:2.1:bcall.py:98:backend_process <Backend 'boursorama'>: Called function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7fcec7ad7b70>> raised an error: TypeError("the JSON object must be str, not 'bytes'",)
Bug(boursorama): the JSON object must be str, not 'bytes'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/tools/application/base.py", line 318, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/capabilities/bank/base.py", line 365, in iter_resources
return self.iter_accounts()
File "/home/weboob/.local/share/weboob/modules/2.1/boursorama/module.py", line 61, in iter_accounts
return self.browser.get_accounts_list()
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/tools/backend.py", line 343, in browser
self._browser = self.create_default_browser()
File "/home/weboob/.local/share/weboob/modules/2.1/boursorama/module.py", line 58, in create_default_browser
return self.create_browser(self.config)
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/tools/backend.py", line 386, in create_browser
browser.load_state(self.storage.get('browser_state', default={}))
File "/home/weboob/.local/share/weboob/modules/2.1/boursorama/browser.py", line 218, in load_state
super(BoursoramaBrowser, self).load_state(state)
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/browser/browsers.py", line 1062, in load_state
self._load_cookies(state['cookies'])
File "/home/weboob/.local/lib/python3.5/site-packages/weboob-2.1-py3.5.egg/weboob/browser/browsers.py", line 1044, in _load_cookies
jcookies = json.loads(uncompressed)
File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
------------------------------------------+----------+---------- boobank>
Thanks if someone can help.