Bug(creditcooperatif): Unable to find element //script[contains(@src, "main-")]
With which module do you encounter problems?
creditcooperatif
Describe the problem you encounter
a call to woob bank list
return an error
Paste here the stacktrace or error message you observe
Bug(creditcooperatif): Unable to find element //script[contains(@src, "main-")]
(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/local/lib/python3.8/dist-packages/woob/browser/filters/html.py", line 108, in filter
return u'%s' % el[0].attrib[self.attr]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/woob/core/bcall.py", line 106, in backend_process
for subresult in result:
File "/usr/local/lib/python3.8/dist-packages/woob/tools/application/base.py", line 328, in _do_complete_iter
for i, sub in enumerate(res):
File "/root/.local/share/woob/modules/3.0/caissedepargne/module.py", line 86, in iter_accounts
for account in self.browser.get_accounts_list():
File "/usr/local/lib/python3.8/dist-packages/woob/browser/switch.py", line 100, in wrapper
return val(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/woob/browser/retry.py", line 77, in wrapper
ret = cb()
File "/usr/local/lib/python3.8/dist-packages/woob/browser/retry.py", line 73, in <lambda>
cb = lambda: func(browser, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/woob/browser/browsers.py", line 981, in inner
browser.do_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/compat/woob_browser.py", line 436, in do_double_authentication
self.init_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 284, in init_login
return self.do_new_login()
File "/root/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 968, in do_new_login
main_js_file = self.page.get_main_js_file_url()
File "/root/.local/share/woob/modules/3.0/caissedepargne/pages.py", line 89, in get_main_js_file_url
return Attr('//script[contains(@src, "main-")]', 'src')(self.doc)
File "/usr/local/lib/python3.8/dist-packages/woob/browser/filters/base.py", line 184, in __call__
return self.filter(self.select(self.selector, item))
File "/usr/local/lib/python3.8/dist-packages/woob/browser/filters/base.py", line 133, in print_debug
res = function(self, value)
File "/usr/local/lib/python3.8/dist-packages/woob/browser/filters/html.py", line 110, in filter
return self.default_or_raise(XPathNotFound('Unable to find element %s' % self.selector))
File "/usr/local/lib/python3.8/dist-packages/woob/browser/filters/base.py", line 71, in default_or_raise
raise exception
woob.browser.filters.html.XPathNotFound: Unable to find element //script[contains(@src, "main-")]
What are the steps to reproduce the problem?
declare an account at the creditcooperatif bank
then enter woob bank list
What woob version are you using?
Output of woob config --version
command:
Woob config v3.0 Copyright(C) 2010-2022 Christophe Benz, Romain Bignon
What module version are you using?
Output of woob config info creditcooperatif
command:
.------------------------------------------------------------------------------.
| Module creditcooperatif |
+-----------------.------------------------------------------------------------'
| Version | 202203101458
| Maintainer | Kevin Pouget <weboob@kevin.pouget.me>
| License | LGPLv3+
| Description | Crédit Coopératif
| Capabilities | CapTransfer, CapBank, CapBankTransferAddRecipient, CapContact, CapCollection, CapDocument, CapBankTransfer, CapBankWealth, CapProfile
| Installed | yes
| Location | https://updates.woob.tech/3.0/main/creditcooperatif.tar.gz
'-----------------'
How did you install woob?
pip install woob
Additional info you'd like to mention
I tried woob update
, but it updated another module and so the error for this one is still there.
Thank you
edit: forgot to mention the problem first arose this morning 11/05/2022 around 00h00
Edited by Charles-Antoine DEGENNES