[bnporc] broken after upgrade to 2.0
Quack,
I just upgraded from the old Debian package to a pip3 install. I updated all modules of course and ran boobank --auto-update --debug
but bnporc
is unfortunately broken:
Bug(bnporc): Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
2020-04-23 02:26:11,101:DEBUG:urllib3.util.retry:2.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2020-04-23 02:26:11,101:DEBUG:urllib3.util.retry:2.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
=== [ 0%] Getting http://updates.weboob.org/2.0/main/
2020-04-23 02:26:11,104:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:221:_new_conn Starting new HTTP connection (1): updates.weboob.org:80
2020-04-23 02:26:11,626:DEBUG:urllib3.connectionpool:2.0:connectionpool.py:428:_make_request http://updates.weboob.org:80 "GET /2.0/main/modules.list HTTP/1.1" 200 52719
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence utf-8 confidence = 0.99
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence SHIFT_JIS Japanese confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-JP Japanese confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence GB2312 Chinese confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-KR Korean confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence CP949 Korean confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence Big5 Chinese confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-TW Taiwan confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1251 Russian confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence KOI8-R Russian confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence ISO-8859-5 Russian confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence MacCyrillic Russian confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence IBM866 Russian confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence IBM855 Russian confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence ISO-8859-7 Greek confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1253 Greek confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence ISO-8859-5 Bulgairan confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1251 Bulgarian confidence = 0.01
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence TIS-620 Thai confidence = 0.013364679396088375
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence ISO-8859-9 Turkish confidence = 0.5727020301486216
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1255 Hebrew confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1255 Hebrew confidence = 0.0
2020-04-23 02:26:12,542:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence windows-1255 Hebrew confidence = 0.0
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence utf-8 confidence = 0.99
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence SHIFT_JIS Japanese confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-JP Japanese confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence GB2312 Chinese confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-KR Korean confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence CP949 Korean confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence Big5 Chinese confidence = 0.01
2020-04-23 02:26:12,543:DEBUG:chardet.charsetprober:2.0:charsetgroupprober.py:100:get_confidence EUC-TW Taiwan confidence = 0.01
Traceback (most recent call last):
File "/home/duck/.local/lib/python3.8/site-packages/weboob/core/bcall.py", line 96, in backend_process
result = getattr(backend, function)(*args, **kwargs)
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/module.py", line 103, in iter_resources
return self.iter_accounts()
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/module.py", line 109, in iter_accounts
return self.browser.iter_accounts()
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 821, in inner
browser.do_login()
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/pp/browser.py", line 156, in do_login
self.page.login(self.username, self.password)
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/pp/pages.py", line 274, in login
response = self.browser.location(target, data={'AUTH': auth, 'CSRF': csrf})
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 759, in location
self.page.on_load()
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/pp/pages.py", line 230, in on_load
error_page = self.browser.list_error_page.open()
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/url.py", line 113, in open
r = self.browser.open(self.build(**kwargs), params=params, data=data, method=method, headers=headers or {}, is_async=is_async, callback=callback)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/tools/decorators.py", line 38, in f_retry
return f(*args, **kwargs)
File "/home/duck/.local/share/weboob/modules/2.0/bnporc/pp/browser.py", line 148, in open
return super(BNPParibasBrowser, self).open(*args, **kwargs)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 738, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 630, in open
return super(DomainBrowser, self).open(req, *args, **kwargs)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 374, in open
response = self.session.send(preq,
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/sessions.py", line 162, in send
return func(*args, **kwargs)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/sessions.py", line 155, in func
return callback(self, resp)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 371, in inner_callback
return callback(response)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/browsers.py", line 718, in internal_callback
response.page = url.handle(response)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/url.py", line 184, in handle
page = self.klass(self.browser, response, m.groupdict())
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/pages.py", line 157, in __init__
self.doc = self.build_doc(self.data)
File "/home/duck/.local/lib/python3.8/site-packages/weboob/browser/pages.py", line 476, in build_doc
return json.loads(text)
File "/usr/lib/python3.8/json/__init__.py", line 337, in loads
raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
Regards. \_o<