woob issueshttps://gitlab.com/woob/woob/-/issues2023-07-24T15:24:31Zhttps://gitlab.com/woob/woob/-/issues/641TypeError in IFormatter.output when outfile is a TextIOWrapper2023-07-24T15:24:31Zdannyp777TypeError in IFormatter.output when outfile is a TextIOWrapper### Module ###
Bank/kiwibank
### Problem Description ###
When using the `woob bank --auto-update` command, I encountered a `TypeError` in the output method of the `IFormatter` class. The error message is: `TypeError: expected str, bytes...### Module ###
Bank/kiwibank
### Problem Description ###
When using the `woob bank --auto-update` command, I encountered a `TypeError` in the output method of the `IFormatter` class. The error message is: `TypeError: expected str, bytes or os.PathLike object, not TextIOWrapper.` This error occurs when `self.outfile` is a `TextIOWrapper` object, which is not a valid argument for the open function.
### Stack Trace ###
```
(woob-env) danny@envy:~$ woob bank --auto-update
Welcome to bank v3.6
Copyright(C) 2010-2023 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: kiwibank
bank> list
Account Balance Coming
------------------------------------------+----------+----------
[kiwibank] Password (hidden input):
Bug(kiwibank): 'NoneType' object has no attribute 'login'
0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Getting https://updates.woob.tech/3/main/Use "logging debug" option to print backtraces.
Traceback (most recent call last):
File "/home/danny/miniconda3/envs/woob-env/bin/woob", line 8, in <module>
sys.exit(Launcher.run())
^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/launcher.py", line 106, in run
return cls.run_app(sys.argv[1], sys.argv[2:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/launcher.py", line 61, in run_app
return app_class.run([app] + args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/console.py", line 296, in run
super().run(args)
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/base.py", line 544, in run
sys.exit(app.main(args))
^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/applications/bank/bank.py", line 984, in main
return super(Appbank, self).main(argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/repl.py", line 358, in main
self.cmdloop()
File "/home/danny/miniconda3/envs/woob-env/lib/python3.11/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
^^^^^^^^^^^^^^^^^
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/repl.py", line 558, in onecmd
self.flush()
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/repl.py", line 1398, in flush
self.formatter.flush()
File "/home/danny/.local/lib/python3.11/site-packages/woob/applications/bank/bank.py", line 454, in flush
self.output('------------------------------------------%s+----------+----------' % (('-' * 15) if not self.interactive else ''))
File "/home/danny/.local/lib/python3.11/site-packages/woob/tools/application/formatters/iformatter.py", line 139, in output
with open(self.outfile, "a+", encoding=encoding, errors='replace') as outfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
### Steps to Reproduce problem ###
1. Added the kiwibank backend
2. Entered the `list` command
3. Entered password
4. Got an error:
```
Bug(kiwibank): 'NoneType' object has no attribute 'login'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Use "logging debug" option to print backtraces.
```
5. Reran `woob bank` with `--auto-update`
6. Entered the `list` command, obtained the traceback.
### Woob version? ###
```
(woob-env) danny@envy:~/github/woob$ woob config --version
Woob config v3.6 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
```
### Module Version? ###
```
(woob-env) danny@envy:~/github/woob$ woob config info kiwibank
.------------------------------------------------------------------------------.
| Module kiwibank |
+-----------------.------------------------------------------------------------'
| Version | 202305231553
| Maintainer | Cédric Félizard <cedric@felizard.fr>
| License | AGPLv3+
| Description | Kiwibank
| Capabilities | CapBank, CapCollection, CapCredentialsCheck
| Installed | yes
| Location | https://updates.woob.tech/3/main/kiwibank.tar.gz
| |
| Configuration | login: Access number (default: )
| | password: Password (default: )
```
### How did you install woob?
```
~$ conda create -n woob-env python=3
~$ conda activate woob-env
~$ pip install woob
~$ git clone https://gitlab.com/woob/woob.git
~$ cd woob
~/woob$ pip install -r requirements-dev.txt
~/woob$ ./tools/local_install.sh ~/bin
```
### Additional info ###
* #Python version#: `Python 3.11`
* #Operating System#:
```
~$ uname -a
Linux envy.local 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
* #Conda Env Package Versions#:
```
(woob-env) danny@envy:~/github/woob$ conda list
# packages in environment at /home/danny/miniconda3/envs/woob-env:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
alabaster 0.7.13 pypi_0 pypi
argcomplete 3.0.8 pypi_0 pypi
asttokens 2.2.1 pypi_0 pypi
attrs 23.1.0 pypi_0 pypi
babel 2.12.1 pypi_0 pypi
bzip2 1.0.8 h7b6447c_0
ca-certificates 2023.05.30 h06a4308_0
certifi 2023.5.7 pypi_0 pypi
cfgv 3.3.1 pypi_0 pypi
charset-normalizer 3.1.0 pypi_0 pypi
colorama 0.4.6 pypi_0 pypi
commitizen 3.3.0 pypi_0 pypi
coverage 7.2.7 pypi_0 pypi
decli 0.6.1 pypi_0 pypi
distlib 0.3.6 pypi_0 pypi
docutils 0.20.1 pypi_0 pypi
filelock 3.12.2 pypi_0 pypi
flake8 5.0.4 pypi_0 pypi
flake8-bugbear 23.3.12 pypi_0 pypi
flake8-import-order 0.18.2 pypi_0 pypi
html2text 2020.1.16 pypi_0 pypi
identify 2.5.24 pypi_0 pypi
idna 3.4 pypi_0 pypi
imagesize 1.4.1 pypi_0 pypi
importlib-metadata 6.6.0 pypi_0 pypi
iniconfig 2.0.0 pypi_0 pypi
isort 5.12.0 pypi_0 pypi
jinja2 3.1.2 pypi_0 pypi
ld_impl_linux-64 2.38 h1181459_1
libffi 3.4.4 h6a678d5_0
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
libuuid 1.41.5 h5eee18b_0
lxml 4.9.2 pypi_0 pypi
markdown-it-py 3.0.0 pypi_0 pypi
markupsafe 2.1.3 pypi_0 pypi
mccabe 0.7.0 pypi_0 pypi
mdurl 0.1.2 pypi_0 pypi
mock 4.0.3 pypi_0 pypi
ncurses 6.4 h6a678d5_0
nodeenv 1.8.0 pypi_0 pypi
openssl 3.0.8 h7f8727e_0
packaging 23.1 pypi_0 pypi
pillow 9.5.0 pypi_0 pypi
pip 23.1.2 py311h06a4308_0
platformdirs 3.5.3 pypi_0 pypi
pluggy 1.0.0 pypi_0 pypi
pre-commit 3.3.3 pypi_0 pypi
prettytable 3.6.0 pypi_0 pypi
prompt-toolkit 3.0.38 pypi_0 pypi
pycodestyle 2.9.1 pypi_0 pypi
pycountry 22.3.5 pypi_0 pypi
pyflakes 2.5.0 pypi_0 pypi
pygments 2.15.1 pypi_0 pypi
pytest 7.2.1 pypi_0 pypi
pytest-cov 4.0.0 pypi_0 pypi
python 3.11.3 h955ad1f_1
python-dateutil 2.8.2 pypi_0 pypi
pyyaml 6.0 pypi_0 pypi
questionary 1.10.0 pypi_0 pypi
readline 8.2 h5eee18b_0
requests 2.31.0 pypi_0 pypi
rich 13.4.2 pypi_0 pypi
setuptools 67.8.0 py311h06a4308_0
six 1.16.0 pypi_0 pypi
snowballstemmer 2.2.0 pypi_0 pypi
sphinx 7.0.1 pypi_0 pypi
sphinx-autodoc-typehints 1.23.0 pypi_0 pypi
sphinxcontrib-applehelp 1.0.4 pypi_0 pypi
sphinxcontrib-devhelp 1.0.2 pypi_0 pypi
sphinxcontrib-htmlhelp 2.0.1 pypi_0 pypi
sphinxcontrib-jquery 4.1 pypi_0 pypi
sphinxcontrib-jsmath 1.0.1 pypi_0 pypi
sphinxcontrib-qthelp 1.0.3 pypi_0 pypi
sphinxcontrib-serializinghtml 1.1.5 pypi_0 pypi
sqlite 3.41.2 h5eee18b_0
termcolor 2.3.0 pypi_0 pypi
tk 8.6.12 h1ccaba5_0
tomlkit 0.11.8 pypi_0 pypi
types-pyyaml 6.0.12.10 pypi_0 pypi
types-requests 2.31.0.1 pypi_0 pypi
types-setuptools 67.8.0.0 pypi_0 pypi
types-simplejson 3.19.0.1 pypi_0 pypi
types-termcolor 1.1.6.2 pypi_0 pypi
types-urllib3 1.26.25.13 pypi_0 pypi
tzdata 2023c h04d1e81_0
unidecode 1.3.6 pypi_0 pypi
urllib3 2.0.3 pypi_0 pypi
virtualenv 20.23.0 pypi_0 pypi
wcwidth 0.2.6 pypi_0 pypi
wheel 0.38.4 py311h06a4308_0
woob 3.6 pypi_0 pypi
xunitparser 1.3.4 pypi_0 pypi
xz 5.4.2 h5eee18b_0
zipp 3.15.0 pypi_0 pypi
zlib 1.2.13 h5eee18b_0
```https://gitlab.com/woob/woob/-/issues/616[Bank][bp] Error : Bug(bp): not all arguments converted during string formatt...2023-03-01T11:33:21Zoliv oliv[Bank][bp] Error : Bug(bp): not all arguments converted during string formatting / encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD3
### With which module do you encounter problems?
bank backends : bp (la banque postale)
### Describe the problem you encounter
In woob bank backends bp, list command generate errors :
encoding error : input conversion failed due ...
### With which module do you encounter problems?
bank backends : bp (la banque postale)
### Describe the problem you encounter
In woob bank backends bp, list command generate errors :
encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD4
### Paste here the stacktrace or error message you observe
$ woob bank -d -b bp
Unable to load formatter "table": No module named 'prettytable'
Falling back to "multiline".
2023-02-10 14:59:52,951:DEBUG:woob.config:3.0:yamlconfig.py:75:load Loading configuration file: /home/oliv/.config/woob/bank.storage.
2023-02-10 14:59:52,951:DEBUG:woob.config:3.0:yamlconfig.py:79:load Configuration file loaded: /home/oliv/.config/woob/bank.storage.
2023-02-10 14:59:52,985:DEBUG:modules:3.0:modules.py:166:load_module Loaded module "bp" from /home/oliv/.local/share/woob/modules/3.0/bp
2023-02-10 14:59:52,985:DEBUG:backend:3.0:modules.py:97:create_instance Created backend "bp" for module "bp"
2023-02-10 14:59:52,986:DEBUG:woob.config:3.0:iniconfig.py:53:load Loading application configuration file: /home/oliv/.config/woob/bank.
2023-02-10 14:59:52,986:DEBUG:woob.config:3.0:iniconfig.py:73:load Application configuration file loaded: /home/oliv/.config/woob/bank.
Welcome to bank v3.0
Copyright(C) 2010-2023 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: bp
bank> list
Account Balance Coming
------------------------------------------+----------+----------
2023-02-10 15:00:56,926:DEBUG:bcall:3.0:bcall.py:92:backend_process <Backend 'bp'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f9b440c9b20>>
[bp] Identifiant (hidden input):
[bp] Mot de passe (hidden input):
2023-02-10 15:01:15,323:DEBUG:urllib3.util.retry:3.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-02-10 15:01:15,323:DEBUG:urllib3.util.retry:3.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-02-10 15:01:15,349:DEBUG:modules:3.0:modules.py:166:load_module Loaded module "linebourse" from /home/oliv/.local/share/woob/modules/3.0/linebourse
2023-02-10 15:01:15,349:DEBUG:urllib3.util.retry:3.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-02-10 15:01:15,349:DEBUG:urllib3.util.retry:3.0:retry.py:229:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2023-02-10 15:01:15,350:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:957:_new_conn Starting new HTTPS connection (1): voscomptesenligne.labanquepostale.fr:443
2023-02-10 15:01:15,453:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:428:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers HTTP/1.1" 200 None
2023-02-10 15:01:15,456:DEBUG:backend.bp.browser:3.0:browsers.py:880:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers with LoginPage
2023-02-10 15:01:15,503:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:428:_make_request https://voscomptesenligne.labanquepostale.fr:443 "GET /wsost/OstBrokerWeb/loginform?imgid=allunifie2&e=4&0.9740851665635204 HTTP/1.1" 200 3544
encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD4
encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD4
I/O error : encoder error
2023-02-10 15:01:15,504:DEBUG:backend.bp.browser:3.0:browsers.py:880:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?imgid=allunifie2&e=4&0.9740851665635204 with UselessPage
2023-02-10 15:01:15,508:DEBUG:PIL.PngImagePlugin:3.0:PngImagePlugin.py:201:call STREAM b'IHDR' 16 13
2023-02-10 15:01:15,509:DEBUG:PIL.PngImagePlugin:3.0:PngImagePlugin.py:201:call STREAM b'IDAT' 41 3487
2023-02-10 15:01:15,521:DEBUG:bcall:3.0:bcall.py:98:backend_process <Backend 'bp'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f9b440c9b20>> raised an error: TypeError('not all arguments converted during string formatting')
Bug(bp): not all arguments converted during string formatting
(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/oliv/.local/lib/python3.8/site-packages/woob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/home/oliv/.local/lib/python3.8/site-packages/woob/tools/application/base.py", line 349, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/oliv/.local/share/woob/modules/3.0/bp/module.py", line 181, in iter_resources
return self.iter_accounts()
File "/home/oliv/.local/share/woob/modules/3.0/bp/module.py", line 80, in iter_accounts
return self.browser.get_accounts_list()
File "/home/oliv/.local/lib/python3.8/site-packages/woob/browser/browsers.py", line 981, in inner
browser.do_login()
File "/home/oliv/.local/share/woob/modules/3.0/bp/browser.py", line 500, in do_login
self.login_without_2fa()
File "/home/oliv/.local/share/woob/modules/3.0/bp/browser.py", line 480, in login_without_2fa
self.page.login(self.username, self.password)
File "/home/oliv/.local/share/woob/modules/3.0/bp/pages/login.py", line 102, in login
vk = Keyboard(self)
File "/home/oliv/.local/share/woob/modules/3.0/bp/pages/login.py", line 82, in __init__
self.check_symbols(self.symbols, page.browser.responses_dirname)
File "/home/oliv/.local/lib/python3.8/site-packages/woob/tools/captcha/virtkeyboard.py", line 174, in check_symbols
self.get_symbol_code(symbols[s])
File "/home/oliv/.local/share/woob/modules/3.0/bp/pages/login.py", line 85, in get_symbol_code
code = VirtKeyboard.get_symbol_code(self, md5sum)
File "/home/oliv/.local/lib/python3.8/site-packages/woob/tools/captcha/virtkeyboard.py", line 164, in get_symbol_code
'Code not found for these hashes "%s".'
TypeError: not all arguments converted during string formatting
------------------------------------------+----------+----------
bank>
### What are the steps to reproduce the problem?
- Launch the woob bank app
- bank> list
- Enter credentials
Account Balance Coming
------------------------------------------+----------+----------
[bp] Identifiant (hidden input):
[bp] Mot de passe (hidden input):
- errors
encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD3
encoding error : input conversion failed due to input error, bytes 0x9D 0x09 0x70 0xD3
I/O error : encoder error
Bug(bp): not all arguments converted during string formatting
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Use "logging debug" option to print backtraces.
------------------------------------------+----------+----------
### What woob version are you using?
$ woob config --version
Woob config v3.0 Copyright(C) 2010-2023 Christophe Benz, Romain Bignon
### What module version are you using?
$ woob config info bp
.------------------------------------------------------------------------------.
| Module bp |
+-----------------.------------------------------------------------------------'
| Version | 202210101650
| Maintainer | Nicolas Duhamel <nicolas@jombi.fr>
| License | LGPLv3+
| Description | La Banque Postale
| Capabilities | CapTransfer, CapDocument, CapBankTransferAddRecipient, CapCredentialsCheck, CapBankWealth, CapBankTransfer, CapProfile, CapContact, CapBank, CapCollection
| Installed | yes
| Location | https://updates.woob.tech/3.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 woob?
$pip install woob
Requirement already satisfied: woob in ./.local/lib/python3.8/site-packages (3.0)
Requirement already satisfied: lxml in ./.local/lib/python3.8/site-packages (from woob) (4.9.1)
Requirement already satisfied: Babel in ./.local/lib/python3.8/site-packages (from woob) (2.11.0)
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from woob) (5.3.1)
Requirement already satisfied: python-dateutil in ./.local/lib/python3.8/site-packages (from woob) (2.8.2)
Requirement already satisfied: unidecode in ./.local/lib/python3.8/site-packages (from woob) (1.3.6)
Requirement already satisfied: cssselect in ./.local/lib/python3.8/site-packages (from woob) (1.2.0)
Requirement already satisfied: requests>=2.0.0 in /usr/lib/python3/dist-packages (from woob) (2.22.0)
Requirement already satisfied: Pillow in ./.local/lib/python3.8/site-packages (from woob) (9.3.0)
Requirement already satisfied: html2text>=3.200 in ./.local/lib/python3.8/site-packages (from woob) (2020.1.16)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from woob) (1.14.0)
Requirement already satisfied: pytz>=2015.7 in ./.local/lib/python3.8/site-packages (from Babel->woob) (2022.6)
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focalhttps://gitlab.com/woob/woob/-/issues/309can't add boursorama module2020-04-12T15:35:04ZWoob Importcan't add boursorama moduleHi,
I removed and reinstalled weboob with python-virtualenv
I still can t add boursorama module
~$ weboob-config add boursorama
Configuration of backend boursorama
-----------------------------------
[login] Identifiant:
Traceback (mo...Hi,
I removed and reinstalled weboob with python-virtualenv
I still can t add boursorama module
~$ weboob-config add boursorama
Configuration of backend boursorama
-----------------------------------
[login] Identifiant:
Traceback (most recent call last):
File "/home/durale/.local/venvs/weboob/bin/weboob-config", line 28, in <module>
WeboobCfg.run()
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 224, in run
super(ConsoleApplication, klass).run(args)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/base.py", line 513, in run
sys.exit(app.main(args))
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/repl.py", line 324, in main
ret = self.onecmd(cmd)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/repl.py", line 454, in onecmd
return super(ReplApplication, self).onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/applications/weboobcfg/weboobcfg.py", line 115, in do_add
self.add_backend(module_name, backend_name or module_name, params)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 363, in add_backend
params[key] = self.ask(value, default=params[key] if (key in params) else value.default)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 445, in ask
if v.is_command(v.default):
AttributeError: 'ValueBackendPassword' object has no attribute 'is_command'
If I try to add my login and password I get this
:~$ weboob-config add boursorama login=xxxxxxx password=xxxxxxx
Error: too many arguments. Command takes at most 2 arguments
with one argument is complaining about the password ...
~$ weboob-config add boursorama login=xxxxxxxx
Configuration of backend boursorama
-----------------------------------
[login] Identifiant: xxxxxxxx
[password] Mot de passe:
Traceback (most recent call last):
File "/home/durale/.local/venvs/weboob/bin/weboob-config", line 28, in <module>
WeboobCfg.run()
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 224, in run
super(ConsoleApplication, klass).run(args)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/base.py", line 513, in run
sys.exit(app.main(args))
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/repl.py", line 324, in main
ret = self.onecmd(cmd)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/repl.py", line 454, in onecmd
return super(ReplApplication, self).onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/applications/weboobcfg/weboobcfg.py", line 115, in do_add
self.add_backend(module_name, backend_name or module_name, params)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 363, in add_backend
params[key] = self.ask(value, default=params[key] if (key in params) else value.default)
File "/home/durale/.local/venvs/weboob/local/lib/python2.7/site-packages/weboob/tools/application/console.py", line 445, in askhttps://gitlab.com/woob/woob/-/issues/74boobank return an 0 exit code even when It fails2019-01-13T15:25:01ZWoob Importboobank return an 0 exit code even when It failsI use boobank in a script, and I need to know if the command was successfull.
When I launch this in a bash script :
```
boobank history XXXXXX@mybank -f ofx --condition "date>10-10-2017" -n 2000 > ~/myfile.ofx
echo "$?"
```
It returns...I use boobank in a script, and I need to know if the command was successfull.
When I launch this in a bash script :
```
boobank history XXXXXX@mybank -f ofx --condition "date>10-10-2017" -n 2000 > ~/myfile.ofx
echo "$?"
```
It returns 0 even if password was wrong or internet connexion is down. I am note sure if it's me who misunderstand bash script, or if return code were not coded in boobank.
Thanks.