[bank][lcl] AttributeError("'NoneType' object has no attribute 'attrib'")
With which module do you encounter problems?
lcl module
Describe the problem you encounter
bank module fails on lcl
backend: woob bank --debug -b lcl list
gives the following stacktrace
Paste here the stacktrace or error message you observe
2023-04-13 22:25:12,180:DEBUG:woob.config:3.2:yamlconfig.py:74:load Loading configuration file: /homecrypt/clabaut/.config/woob/bank.storage.
2023-04-13 22:25:12,181:DEBUG:woob.config:3.2:yamlconfig.py:78:load Configuration file loaded: /homecrypt/clabaut/.config/woob/bank.storage.
2023-04-13 22:25:12,248:DEBUG:woob.core.modules.loader:3.2:modules.py:182:load_module Loaded module "lcl" from /home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl
2023-04-13 22:25:12,284:DEBUG:woob.backend:3.2:modules.py:98:create_instance Created backend "lcl" for module "lcl"
2023-04-13 22:25:12,285:DEBUG:woob.config:3.2:iniconfig.py:45:load Loading application configuration file: /homecrypt/clabaut/.config/woob/bank.
2023-04-13 22:25:12,285:DEBUG:woob.config:3.2:iniconfig.py:62:load Application configuration file loaded: /homecrypt/clabaut/.config/woob/bank.
Account Balance Coming
---------------------------------------------------------+----------+----------
2023-04-13 22:25:12,289:DEBUG:woob.core.bcall:3.2:bcall.py:91:backend_process <Backend 'lcl'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f9ca890aaa0>>
2023-04-13 22:25:12,289:DEBUG:urllib3.util.retry:3.2:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-04-13 22:25:12,289:DEBUG:urllib3.util.retry:3.2:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-04-13 22:25:12,291:DEBUG:urllib3.util.retry:3.2:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-04-13 22:25:12,291:DEBUG:urllib3.util.retry:3.2:retry.py:351:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-04-13 22:25:12,292:INFO:woob.backend.lcl.browser:3.2:browsers.py:990:load_state State expired, not reloading it from storage
2023-04-13 22:25:12,293:DEBUG:urllib3.connectionpool:3.2:connectionpool.py:1003:_new_conn Starting new HTTPS connection (1): particuliers.secure.lcl.fr:443
2023-04-13 22:25:12,413:DEBUG:urllib3.connectionpool:3.2:connectionpool.py:456:_make_request https://particuliers.secure.lcl.fr:443 "GET /outil/UAUT?from=/outil/UWHO/Accueil/ HTTP/1.1" 200 5337
2023-04-13 22:25:12,415:DEBUG:woob.backend.lcl.browser:3.2:browsers.py:809:internal_callback Handle https://particuliers.secure.lcl.fr/outil/UAUT?from=/outil/UWHO/Accueil/ with LoginPage
2023-04-13 22:25:12,444:DEBUG:urllib3.connectionpool:3.2:connectionpool.py:456:_make_request https://particuliers.secure.lcl.fr:443 "GET /outil/UAUT/Clavier/creationClavier?random=791206953139503890432 HTTP/1.1" 200 2189
2023-04-13 22:25:12,453:DEBUG:woob.backend.lcl.browser:3.2:browsers.py:823:internal_callback Unable to handle https://particuliers.secure.lcl.fr/outil/UAUT/Clavier/creationClavier?random=791206953139503890432
2023-04-13 22:25:12,453:DEBUG:woob.core.bcall:3.2:bcall.py:97:backend_process <Backend 'lcl'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f9ca890aaa0>> raised an error: AttributeError("'NoneType' object has no attribute 'attrib'")
Bug(lcl): 'NoneType' object has no attribute 'attrib'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/woob/core/bcall.py", line 93, in backend_process
result = function(backend, *args, **kwargs)
File "/usr/lib/python3.10/site-packages/woob/tools/application/base.py", line 351, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl/module.py", line 335, in iter_resources
return self.iter_accounts()
File "/home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl/module.py", line 153, in iter_accounts
return self.browser.get_accounts_list()
File "/usr/lib/python3.10/site-packages/woob/browser/browsers.py", line 910, in inner
browser.do_login()
File "/usr/lib/python3.10/site-packages/woob/browser/mfa.py", line 176, in do_double_authentication
self.init_login()
File "/home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl/browser.py", line 261, in init_login
self.page.login(self.username, self.password)
File "/home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl/pages.py", line 151, in login
vk = LCLVirtKeyboard(self)
File "/home/clabaut/.local/share/woob/modules/3.2/woob_modules/lcl/pages.py", line 124, in __init__
super(LCLVirtKeyboard, self).__init__(
File "/usr/lib/python3.10/site-packages/woob/tools/captcha/virtkeyboard.py", line 195, in __init__
map_id = img_element.attrib.get("usemap")[1:]
AttributeError: 'NoneType' object has no attribute 'attrib'
---------------------------------------------------------+----------+----------
2023-04-13 22:25:12,489:DEBUG:woob.backend.lcl.browser:3.2:browsers.py:1026:dump_state Stored cookies into storage
2023-04-13 22:25:12,491:DEBUG:woob.config:3.2:yamlconfig.py:92:save Configuration file saved: /homecrypt/clabaut/.config/woob/bank.storage.
What are the steps to reproduce the problem?
woob bank --debug -b lcl list
What woob version are you using?
Output of woob config --version
command:
Woob config v3.2 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info MODULE_NAME
command:
.------------------------------------------------------------------------------.
| Module lcl |
+-----------------.------------------------------------------------------------'
| Version | 202301291139
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | LCL
| Capabilities | CapDocument, CapBank, CapBankMatching, CapCredentialsCheck, CapBankTransferAddRecipient, CapProfile, CapCollection, CapTransfer, CapBankWealth, CapContact, CapBankTransfer
| Installed | yes
| Location | https://updates.weboob.org/3.2/main/lcl.tar.gz
| |
| Configuration | login: Identifiant (default: )
| | password: Code personnel (default: )
| | website: Type de compte (default: par)
| | resume: None
| | request_information: None
| | code: None
'-----------------'
How did you install woob?
pacman on arch linux