[weboob] POb sur le backend bnporc

jul.gil at gmail.com jul.gil at gmail.com
Thu Jan 27 23:24:19 CET 2011


Bonsoir,

j'ai installé boobank, une fois par le le paquet debian (squeeze), et
une fois directement avec le dépot git, et dans les 2 cas j'ai le
message d'erreur suivant :

$ boobank list
Error(bnporc): 9
Use --debug option to print backtraces.

Et avec les logs :

$ boobank --debug  list
2011-01-27 23:21:07,938:DEBUG:modules:modules.py:145:load_module
Loaded module "bnporc" from
/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc
2011-01-27 23:21:07,939:DEBUG:backend:modules.py:97:create_instance
Created backend instance "bnporc" for backend "bnporc"
2011-01-27 23:21:07,942:DEBUG:modules:modules.py:145:load_module
Loaded module "transilien" from
/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/transilien
2011-01-27 23:21:07,988:DEBUG:modules:modules.py:145:load_module
Loaded module "arte" from
/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/arte
2011-01-27 23:21:08,080:DEBUG:modules:modules.py:145:load_module
Loaded module "dlfp" from
/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/dlfp
2011-01-27 23:21:08,085:DEBUG:bcall:bcall.py:78:__init__ Creating a
new thread for <Backend 'bnporc'>
2011-01-27 23:21:08,086:DEBUG:bcall:bcall.py:98:_caller <Backend
'bnporc'>: Thread created successfully
2011-01-27 23:21:08,087:DEBUG:bcall:bcall.py:103:_caller <Backend
'bnporc'>: Calling function <bound method Boobank._do_complete of
<weboob.applications.boobank.boobank.Boobank object at 0xb718a12c>>
2011-01-27 23:21:08,087:DEBUG:bcall:bcall.py:112:_caller <Backend
'bnporc'>: Called function <bound method Boobank._do_complete of
<weboob.applications.boobank.boobank.Boobank object at 0xb718a12c>>
returned: <generator object _do_complete_iter at 0x8bb7be4>
2011-01-27 23:21:08,297:DEBUG:backend.bnporc.browser:browser.py:404:_change_location
[user_id=0048297222] Went on
https://www.secure.bnpparibas.net/banque/portail/particulier/HomeConnexion?type=homeconnex
2011-01-27 23:21:08,417:DEBUG:backend.bnporc.browser:browser.py:415:_change_location
!! Relogin !!
2011-01-27 23:21:08,418:DEBUG:backend.bnporc.browser:browser.py:262:openurl
Opening URL "('/NSImgGrille',)", {}
Error(bnporc): 9
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/core/bcall.py",
line 117, in _caller
    for subresult in result:
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/application/base.py",
line 242, in _do_complete_iter
    for i, sub in enumerate(res):
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/backend.py",
line 64, in iter_accounts
    for account in self.browser.get_accounts_list():
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/backend.py",
line 166, in browser
    self._browser = self.create_default_browser()
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/backend.py",
line 55, in create_default_browser
    rotating_password=rotating_password)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/backend.py",
line 190, in create_browser
    return self.BROWSER(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/browser.py",
line 52, in __init__
    BaseBrowser.__init__(self, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/browser/browser.py",
line 217, in __init__
    self.home()
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/browser.py",
line 55, in home
    self.location('https://www.secure.bnpparibas.net/banque/portail/particulier/HomeConnexion?type=homeconnex')
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/browser/browser.py",
line 252, in inner
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/decorators.py",
line 37, in f_retry
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/browser/browser.py",
line 364, in location
    self._change_location(mechanize.Browser.open(self, *args,
**kwargs), no_login=no_login)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/tools/browser/browser.py",
line 416, in _change_location
    self.login()
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/browser.py",
line 68, in login
    self.page.login(self.username, self.password)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/pages/login.py",
line 55, in login
    self.browser['ch5'] = img.get_codes(password)
  File "/usr/local/lib/python2.6/dist-packages/weboob-0.5.1-py2.6.egg/weboob/backends/bnporc/captcha.py",
line 49, in get_codes
    s += '%02d' % self.map[int(c)].id
KeyError: 9

C'est la bnp qui a changé des choses, ou c'est entre le clavier et la
chaise que se situe le bug ?


--
Julien Gilles.



More information about the weboob mailing list