[boobank][americanexpress]AttributeError: 'NoneType' object has no attribute 'fill_balances'
With which module do you encounter problems?
americanexpress
Describe the problem you encounter
Issuing the list
command raises an error
AttributeError: 'NoneType' object has no attribute 'fill_balances'
Paste here the stacktrace or error message you observe
C:\> boobank -b americanexpress
Welcome to boobank v2.1
Copyright(C) 2010-2021 Romain Bignon, Christophe Benz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Type "help" to display available commands.
Loaded backends: americanexpress
boobank> logging debug
boobank> list
Account Balance Coming
------------------------------------------+----------+----------
2021-01-17 23:24:54,526:DEBUG:bcall:2.1:bcall.py:92:backend_process <Backend 'americanexpress'>: Calling function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x03FA0B80>>
2021-01-17 23:24:54,528:DEBUG:urllib3.util.retry:2.1:retry.py:230:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2021-01-17 23:24:54,528:DEBUG:urllib3.util.retry:2.1:retry.py:230:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2021-01-17 23:24:54,534:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:937:_new_conn Starting new HTTPS connection (1): global.americanexpress.com:443
2021-01-17 23:24:55,940:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://global.americanexpress.com:443 "GET /login?inav=fr_utility_logout HTTP/1.1" 302 324
2021-01-17 23:24:55,947:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:937:_new_conn Starting new HTTPS connection (1): www.americanexpress.com:443
2021-01-17 23:24:57,271:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.americanexpress.com:443 "GET /en-us/account/login?DestPage=https%3A%2F%2Fglobal.americanexpress.com%2Fdashboard%3Finav%3Dfr_utility_logout HTTP/1.1" 200 56042
2021-01-17 23:24:57,844:DEBUG:backend.americanexpress.browser:2.1:browsers.py:898:internal_callback Unable to handle https://www.americanexpress.com/en-us/account/login?DestPage=https%3A%2F%2Fglobal.americanexpress.com%2Fdashboard%3Finav%3Dfr_utility_logout
2021-01-17 23:24:58,896:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://global.americanexpress.com:443 "POST /myca/logon/emea/action/login HTTP/1.1" 200 139
2021-01-17 23:24:58,915:DEBUG:backend.americanexpress.browser:2.1:browsers.py:884:internal_callback Handle https://global.americanexpress.com/myca/logon/emea/action/login with LoginPage
2021-01-17 23:24:58,919:DEBUG:bcall:2.1:bcall.py:101:backend_process <Backend 'americanexpress'>: Called function <bound method Application._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x03FA0B80>> returned: <generator object Application._do_complete_iter at 0x04979258>
2021-01-17 23:24:58,924:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:937:_new_conn Starting new HTTPS connection (1): www.aexp-static.com:443
2021-01-17 23:24:59,951:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.aexp-static.com:443 "GET /cdaas/axp-app/modules/axp-balance-summary/4.7.0/fr-fr/axp-balance-summary.json HTTP/1.1" 200 1447
2021-01-17 23:24:59,954:DEBUG:backend.americanexpress.browser:2.1:browsers.py:884:internal_callback Handle https://www.aexp-static.com/cdaas/axp-app/modules/axp-balance-summary/4.7.0/fr-fr/axp-balance-summary.json with CurrencyPage
2021-01-17 23:25:00,854:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://global.americanexpress.com:443 "GET /api/servicing/v1/member HTTP/1.1" 200 681
2021-01-17 23:25:00,861:DEBUG:backend.americanexpress.browser:2.1:browsers.py:884:internal_callback Handle https://global.americanexpress.com/api/servicing/v1/member with AccountsPage
2021-01-17 23:25:01,389:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://global.americanexpress.com:443 "GET /account-data/v1/financials/balances HTTP/1.1" 302 0
2021-01-17 23:25:01,786:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.americanexpress.com:443 "GET / HTTP/1.1" 302 0
2021-01-17 23:25:02,240:DEBUG:urllib3.connectionpool:2.1:connectionpool.py:433:_make_request https://www.americanexpress.com:443 "GET /fr/ HTTP/1.1" 200 45088
2021-01-17 23:25:02,320:DEBUG:backend.americanexpress.browser:2.1:browsers.py:898:internal_callback Unable to handle https://www.americanexpress.com/fr/
Bug(americanexpress): 'NoneType' object has no attribute 'fill_balances'
Traceback (most recent call last):
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\core\bcall.py", line 106, in backend_process
for subresult in result:
File "C:\Users\Bruno\AppData\Roaming\Python\Python38\site-packages\weboob-2.1-py3.8.egg\weboob\tools\application\base.py", line 297, in _do_complete_iter
for i, sub in enumerate(res):
File "d:/Dropbox/Projets/boomoney/modules/americanexpress\browser.py", line 169, in iter_accounts
self.page.fill_balances(obj=account)
AttributeError: 'NoneType' object has no attribute 'fill_balances'
------------------------------------------+----------+----------
boobank>
What are the steps to reproduce the problem?
Run the list
command in boobank
What weboob version are you using?
Output of weboob-config --version
command:
C:\> weboob-config --version
weboob-config v2.1 Copyright(C) 2010-2021 Christophe Benz, Romain Bignon
What module version are you using?
Output of weboob-config info MODULE_NAME
command:
C:\> weboob-config info americanexpress
.------------------------------------------------------------------------------.
| Module americanexpress |
+-----------------.------------------------------------------------------------'
| Version | 202011212142
| Maintainer | Romain Bignon <romain@weboob.org>
| License | LGPLv3+
| Description | American Express
| Capabilities | CapBank, CapCollection
| Installed | yes
| Location | d:/Dropbox/Projets/boomoney/modules/americanexpress
| |
| Configuration | login: Code utilisateur (default: )
| | password: Mot de passe (default: )
'-----------------'
How did you install weboob?
Windows installation through git clone
Additional info you'd like to mention
Seems the problem appeared on 15/01/2021