Boobank: carrefourbanque backends creation fails
Boobank v1.3 on Ubuntu 14.04 and Syno carrefourbanque backends creation fails linked to password:
2 tests done with slighty different effects:
a- answering p for prompt during creation is ok but the issue occurs afterwards when accessing to the backend (ie with list) lead to the following message w/o fatal error:
Bug(carrefourbanque): 'ascii' codec can't encode character u'\xe8' in position 28: ordinal not in range(128)
b- answering s for store during backends creation leads to a fatal error:
[password] Code d'accès:
c: Run an external tool during backend load
p: Prompt value when needed (do not store it)
s: Store value in config
*** How do you want to store it? (c/P/s): s
Traceback (most recent call last):
File "/var/services/homes/admin/bin/boobank", line 4, in <module>
__import__('pkg_resources').run_script('weboob==1.3', 'boobank')
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1505, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/EGG-INFO/scripts/boobank", line 27, in <module>
Boobank.run()
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/console.py", line 226, in run
super(ConsoleApplication, klass).run(args)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/base.py", line 489, in run
sys.exit(app.main(args))
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/applications/boobank/boobank.py", line 721, in main
return super(Boobank, self).main(argv)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/repl.py", line 339, in main
self.cmdloop()
File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/repl.py", line 437, in onecmd
return super(ReplApplication, self).onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/repl.py", line 719, in do_backends
instname = self.add_backend(name, name)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/console.py", line 365, in add_backend
params[key] = self.ask(value, default=params[key] if (key in params) else value.default)
File "/usr/local/lib/python2.7/site-packages/weboob-1.3-py2.7.egg/weboob/tools/application/console.py", line 507, in ask
line = getpass.getpass(question)
File "/usr/lib/python2.7/getpass.py", line 71, in unix_getpass
passwd = _raw_input(prompt, stream, input=input)
File "/usr/lib/python2.7/getpass.py", line 128, in _raw_input
prompt = str(prompt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 10: ordinal not in range(128)