• # Nouveau souci. :)

    Posté par . En réponse au message Weboob - Météo. Évalué à 1.

    Alors, si ça a l'air de fonctionner, je ne reçois aucun résultat.

    $ wetboobs current 75001@meteofrance --debug
    2016年07月07日 08:26:33,830:DEBUG:modules:1.0:modules.py:161:load_module Loaded module "meteofrance" from /home/tanouk/.local/share/weboob/modules/1.0/meteofrance
    2016年07月07日 08:26:33,830:DEBUG:backend:1.0:modules.py:98:create_instance Created backend "meteofrance" for module "meteofrance"
    2016年07月07日 08:26:33,831:DEBUG:root:1.0:iniconfig.py:45:load Loading application configuration file: /home/tanouk/.config/weboob/wetboobs.
    2016年07月07日 08:26:33,831:DEBUG:root:1.0:iniconfig.py:62:load Application configuration file loaded: /home/tanouk/.config/weboob/wetboobs.
    2016年07月07日 08:26:33,834:DEBUG:bcall:1.0:bcall.py:81:backend_process : Calling function >
    2016年07月07日 08:26:33,848:DEBUG:backend.meteofrance.browser:1.0:browser.py:235:openurl Opening URL "('http://www.meteofrance.com/mf3-rpc-portlet/rest/lieu/facet/previsions/search/75001',)", {}
    2016年07月07日 08:26:34,097:DEBUG:backend.meteofrance.browser:1.0:browser.py:670:change_location [user_id=None] Went on http://www.meteofrance.com/previsions-meteo-france/paris-01e-arrondissement/75001
    2016年07月07日 08:26:34,245:DEBUG:bcall:1.0:bcall.py:87:backend_process : Called function > raised an error: IndexError('list index out of range',)
    Bug(meteofrance): list index out of range
    === [ 0%] Getting http://updates.weboob.org/1.0/main/
    2016年07月07日 08:26:34,743:INFO:urllib3.connectionpool:1.0:connectionpool.py:188:_new_conn Starting new HTTP connection (1): updates.weboob.org
    2016年07月07日 08:26:34,894:DEBUG:urllib3.connectionpool:1.0:connectionpool.py:362:_make_request "GET /1.0/main/modules.list HTTP/1.1" 200 36117
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/weboob/core/bcall.py", line 83, in backend
    process
    result = function(backend, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/weboob/tools/application/base.py", line 305, in do_complete
    res = getattr(backend, function)(*args, **kwargs)
    File "/home/tanouk/.local/share/weboob/modules/1.0/meteofrance/module.py", line 40, in get_current
    return self.browser.get_current(city_id)
    File "/home/tanouk/.local/share/weboob/modules/1.0/meteofrance/browser.py", line 59, in get
    current
    return self.page.get_current()
    File "/home/tanouk/.local/share/weboob/modules/1.0/meteofrance/pages/meteo.py", line 58, in get_current
    div = self.document.getroot().xpath('//div[@class="bloc-day-summary"]')[0]
    IndexError: list index out of range

    Hum, je me demande si ça ne vient pas de l'ancienneté de la version de Weboob, finalement.