[bp] TypeError: expected string or bytes-like object
With which module do you encounter problems?
bp
Describe the problem you encounter
I can't seem to get even a list of accounts.
Paste here the stacktrace or error message you observe
2020-10-01 21:14:57,164:WARNING:backend.bp.browser.accountlist.item_account:2.0:elements.py:384:handle_attr Attribute iban (in /home/blagandzig/.local/share/weboob/modules/2.0/bp/pages/accountlist.py:246) raises TypeError('expected string or bytes-like object')
2020-10-01 21:14:57,164:DEBUG:bcall:2.0:bcall.py:98:backend_process <Backend 'bp'>: Called function iter_resources raised an error: TypeError('expected string or bytes-like object')
Bug(bp): expected string or bytes-like object
(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/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/core/bcall.py", line 96, in backend_process
result = getattr(backend, function)(*args, **kwargs)
File "/home/blagandzig/.local/share/weboob/modules/2.0/bp/module.py", line 181, in iter_resources
return self.iter_accounts()
File "/home/blagandzig/.local/share/weboob/modules/2.0/bp/module.py", line 78, in iter_accounts
return self.browser.get_accounts_list()
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/browser/browsers.py", line 824, in inner
return func(browser, *args, **kwargs)
File "/home/blagandzig/.local/share/weboob/modules/2.0/bp/browser.py", line 555, in get_accounts_list
for account in self.page.iter_accounts(name=owner_name):
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/browser/elements.py", line 218, in __iter__
for obj in item:
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/browser/elements.py", line 360, in __iter__
self.handle_attr(attr, getattr(self, 'obj_%s' % attr))
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/browser/elements.py", line 377, in handle_attr
value = self.use_selector(func, key=key)
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/site-packages/weboob/browser/elements.py", line 133, in use_selector
value = func()
File "/home/blagandzig/.local/share/weboob/modules/2.0/bp/pages/accountlist.py", line 163, in obj_iban
return response.page.get_iban()
File "/home/blagandzig/.local/share/weboob/modules/2.0/bp/pages/accountlist.py", line 497, in get_iban
m = re.search(self.iban_regexp, extract_text(self.data))
File "/home/blagandzig/.local/venvs/weboob/lib/python3.7/re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
---------------------------------------------------------+----------+----------
2020-10-01 21:14:57,241:INFO:backend.bp.browser:2.0:browsers.py:909:dump_state Stored cookies into storage
2020-10-01 21:14:57,271:DEBUG:weboob.config:2.0:yamlconfig.py:90:save Configuration file saved: /home/blagandzig/.config/weboob/boobank.storage.
What are the steps to reproduce the problem?
p="$HOME/.local/venvs"
python3 /usr/bin/virtualenv --python=python3 "$p/weboob"
. "$p/weboob/bin/activate"
python3 $p/weboob/bin/pip -vv install git+https://git.weboob.org/weboob/devel.git@stable
python3 $p/weboob/bin/pip -vv install pdfminer.six
weboob-config update
boobank --debug -b bp list
What weboob version are you using?
devel.git@stable apparently.
Output of weboob-config --version
command:
weboob-config v2.0 Copyright(C) 2010-2020 Christophe Benz, Romain Bignon
### What module version are you using?
Output of `weboob-config info MODULE_NAME` command:
weboob-config info bp
.------------------------------------------------------------------------------.
| Module bp |
+-----------------.------------------------------------------------------------'
| Version | 202009242300
| Maintainer | Nicolas Duhamel <nicolas@jombi.fr>
| License | LGPLv3+
| Description | La Banque Postale
| Capabilities | CapContact, CapCollection, CapBankTransferAddRecipient, CapDocument, CapBankWealth, CapBank, CapProfile, CapBankTransfer
| Installed | yes
| Location | https://updates.weboob.org/2.0/main/bp.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Mot de passe (default: )
| | website: Type de compte (default: par)
| | request_information: None
| | code: None
| | resume: None
'-----------------'
How did you install weboob?
See above.
Additional info you'd like to mention
I'm willing to help debugging :-)