[boursorama] boobank investment not working
With which module do you encounter problems?
boursorama
Describe the problem you encounter
The boobank investment
command does no longer works on my boursorama account since last update
Paste here the stacktrace or error message you observe
Bug(boursorama): 'list' object has no attribute 'xpath'
(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.9/site-packages/weboob/core/bcall.py", line 106, in backend_process
for subresult in result:
File "/usr/lib/python3.9/site-packages/weboob/tools/application/base.py", line 297, in _do_complete_iter
for i, sub in enumerate(res):
File "/usr/lib/python3.9/site-packages/weboob/browser/retry.py", line 170, in __next__
obj = next(self.it)
File "/usr/lib/python3.9/site-packages/weboob/browser/elements.py", line 218, in __iter__
for obj in item:
File "/usr/lib/python3.9/site-packages/weboob/browser/elements.py", line 360, in __iter__
self.handle_attr(attr, getattr(self, 'obj_%s' % attr))
File "/usr/lib/python3.9/site-packages/weboob/browser/elements.py", line 377, in handle_attr
value = self.use_selector(func, key=key)
File "/usr/lib/python3.9/site-packages/weboob/browser/elements.py", line 127, in use_selector
value = func(self)
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/base.py", line 184, in __call__
return self.filter(self.select(self.selector, item))
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/base.py", line 168, in select
ret = selector(item)
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/standard.py", line 122, in __call__
return self.select(self.selector, base)
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/base.py", line 168, in select
ret = selector(item)
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/base.py", line 184, in __call__
return self.filter(self.select(self.selector, item))
File "/usr/lib/python3.9/site-packages/weboob/browser/filters/base.py", line 164, in select
ret = item.xpath(selector)
AttributeError: 'list' object has no attribute 'xpath'
What are the steps to reproduce the problem?
boobank --debug -f json investment (account id)@boursorama
What weboob version are you using?
Output of weboob-config --version
command:
paste here
What module version are you using?
Output of weboob-config info MODULE_NAME
command:
weboob-config v2.0 Copyright(C) 2010-2021 Christophe Benz, Romain Bignon
How did you install weboob?
pacman
Additional info you'd like to mention
My guess is that https://git.weboob.org/weboob/weboob/commit/cd9962231db7f12808c346cf5e702a2c6dc0a5bc requires https://git.weboob.org/weboob/weboob/commit/af7286cfa6b16b2aa02a530ca78a15c2d4cccb7b which is not present in 2.0. Reverting cd996223 fixes the issue.