Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kresus kresus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 142
    • Issues 142
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kresusapp
  • kresuskresus
  • Issues
  • #1002
Closed
Open
Created Aug 31, 2020 by Dashie@DashieV3💬

LBP Module not available on Weboob

The LBP module seems unavailable according to logs.

I have recreated the container, tried weboob update from UI and it is still 'unavailable'.

Image:

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
bnjbvr/kresus       latest              13b3309e498d        4 months ago        1.56GB

Logs:

[ENTRYPOINT] Starting with UID : 1000
[ENTRYPOINT] Starting with UID : 1000
usermod: no changes
[ENTRYPOINT] Setting fake values for git config...
[ENTRYPOINT] Updating weboob...
Already up-to-date.
[ENTRYPOINT] Done updating.
[ENTRYPOINT] Updating Weboob dependencies...
The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting lxml (from -r /tmp/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/ab/23/4491c457ceb7f0b9f4050b2ddcf012defa1fb5659c5c0a82f3bbe60ce1ec/lxml-4.5.2-cp35-cp35m-manylinux1_x86_64.whl (5.5MB)
Collecting cssselect (from -r /tmp/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/3b/d4/3b5c17f00cce85b9a1e6f91096e1cc8e8ede2e1be8e96b87ce1ed09e92c5/cssselect-1.1.0-py2.py3-none-any.whl
Collecting requests>=2.0.0 (from -r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl (61kB)
Collecting python-dateutil (from -r /tmp/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
Collecting PyYAML (from -r /tmp/requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
Collecting html2text>=3.200 (from -r /tmp/requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/ae/88/14655f727f66b3e3199f4467bafcc88283e6c31b562686bf606264e09181/html2text-2020.1.16-py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from -r /tmp/requirements.txt (line 7))
Collecting unidecode (from -r /tmp/requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/d0/42/d9edfed04228bacea2d824904cae367ee9efd05e6cce7ceaaedd0b0ad964/Unidecode-1.1.1-py2.py3-none-any.whl (238kB)
Collecting Pillow (from -r /tmp/requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/56/3d/f3031fe0a88b797fd09ee0772f611e65be34f30263eefb838cce8f367e75/Pillow-7.2.0-cp35-cp35m-manylinux1_x86_64.whl (2.2MB)
Collecting Babel (from -r /tmp/requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/15/a1/522dccd23e5d2e47aed4b6a16795b8213e3272c7506e625f2425ad025a19/Babel-2.8.0-py2.py3-none-any.whl (8.6MB)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
Collecting idna<3,>=2.5 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl (127kB)
Collecting certifi>=2017.4.17 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc13483228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl (156kB)
Collecting pytz>=2015.7 (from Babel->-r /tmp/requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl (510kB)
Installing collected packages: lxml, cssselect, idna, urllib3, certifi, requests, python-dateutil, PyYAML, html2text, unidecode, Pillow, pytz, Babel
  Found existing installation: idna 2.2
    Not uninstalling idna at /usr/lib/python3/dist-packages, outside environment /usr
  Running setup.py install for PyYAML: started
    Running setup.py install for PyYAML: finished with status 'done'
Successfully installed Babel-2.8.0 Pillow-7.2.0 PyYAML-5.3.1 certifi-2020.6.20 cssselect-1.1.0 html2text-2020.1.16 idna-2.10 lxml-4.5.2 python-dateutil-2.8.1 pytz-2020.1 requests-2.24.0 unidecode-1.1.1 urllib3-1.25.10
[ENTRYPOINT] Done updating weboob dependencies.
[ENTRYPOINT] Trying to update kresus...
[ENTRYPOINT] Done.
[ENTRYPOINT] Changing rights on user home directory...
[ENTRYPOINT] Changing rights on /weboob directory...
[ENTRYPOINT] Running kresus as user.
[2020-08-31T05:53:20.829] [INFO] apply-config - Running Kresus with the following parameters:
[2020-08-31T05:53:20.835] [INFO] apply-config - NODE_ENV = production
[2020-08-31T05:53:20.835] [INFO] apply-config - KRESUS_LOGIN = user
[2020-08-31T05:53:20.836] [INFO] apply-config - KRESUS_DIR = /home/user/data
[2020-08-31T05:53:20.836] [INFO] apply-config - KRESUS_USER_ID = null
[2020-08-31T05:53:20.836] [INFO] apply-config - PORT = 9876
[2020-08-31T05:53:20.836] [INFO] apply-config - HOST = 0.0.0.0
[2020-08-31T05:53:20.836] [INFO] apply-config - KRESUS_PYTHON_EXEC = python3
[2020-08-31T05:53:20.836] [INFO] apply-config - KRESUS_URL_PREFIX = /
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_SALT = (hidden)
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_FORCE_DEMO_MODE = false
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_WEBOOB_DIR = /weboob
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_WEBOOB_SOURCES_LIST = null
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_EMAIL_TRANSPORT = smtp
[2020-08-31T05:53:20.837] [INFO] apply-config - KRESUS_EMAIL_SENDMAIL_BIN = null
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_FROM = kresus@xxx.xxx
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_HOST = 172.17.0.1
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_PORT = 25
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_USER = null
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_PASSWORD = (hidden)
[2020-08-31T05:53:20.838] [INFO] apply-config - KRESUS_EMAIL_FORCE_TLS = false
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS = false
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_APPRISE_API_BASE_URL = https://kresus.xxx.xxx/
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_AUTH = null
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_LOG_FILE = /home/user/data/kresus.log
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_DB_TYPE = postgres
[2020-08-31T05:53:20.839] [INFO] apply-config - KRESUS_DB_LOG = error
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_SQLITE_PATH = null
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_HOST = xxx
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_PORT = 5432
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_USERNAME = kresus
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_PASSWORD = (hidden)
[2020-08-31T05:53:20.840] [INFO] apply-config - KRESUS_DB_NAME = kresus
[2020-08-31T05:53:21.848] [INFO] models/index - User has id 1
[2020-08-31T05:53:21.859] [INFO] models/index - Checking if the migration from CozyDB is required... no
[2020-08-31T05:53:21.866] [INFO] init - Starting bank accounts polling et al...
[2020-08-31T05:53:21.871] [INFO] poller - > Next check of accounts on 01/09/2020 at 02:43:00
[2020-08-31T05:53:21.873] [INFO] poller - Checking accounts and operations for all accesses...
[2020-08-31T05:53:21.887] [INFO] accounts-manager - Retrieve all accounts from access bp with login xxx
[2020-08-31T05:53:21.891] [INFO] providers/weboob - Calling weboob: command accounts...
[2020-08-31T05:53:21.891] [INFO] providers/weboob - Weboob will be updated prior to command "accounts"
[2020-08-31T05:53:23.365] [INFO] providers/weboob - exited with code 1.
[2020-08-31T05:53:23.366] [WARN] providers/weboob - stderr: 2020-08-31 07:53:23,194:WARNING:repository:repositories.py:313:build_index Unable to build module fakeweboobbank: [ImportError] cannot import name 'Currency'
[2020-08-31T05:53:23.366] [INFO] providers/weboob - Command returned an error code.
[2020-08-31T05:53:23.367] [INFO] providers/weboob - Checking that weboob is installed and can actually be called…
[2020-08-31T05:53:23.368] [INFO] providers/weboob - Calling weboob: command test...
[2020-08-31T05:53:23.746] [INFO] providers/weboob - exited with code 0.
[2020-08-31T05:53:23.746] [INFO] providers/weboob - OK: weboob exited normally with non-empty JSON content.
[2020-08-31T05:53:23.747] [ERROR] providers/weboob - Got error while running command "accounts": Unable to load module bp.
Traceback (most recent call last):
  File "/weboob/weboob/core/modules.py", line 152, in load_module
    module = LoadedModule(imp.load_module(module_name, fp, pathname, description))
  File "/usr/lib/python3.5/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.5/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/user/data/weboob-data/modules/2.1/bp/__init__.py", line 20, in <module>
    from .module import BPModule
  File "/home/user/data/weboob-data/modules/2.1/bp/module.py", line 36, in <module>
    from .browser import BPBrowser, BProBrowser
  File "/home/user/data/weboob-data/modules/2.1/bp/browser.py", line 47, in <module>
    from .pages import (
  File "/home/user/data/weboob-data/modules/2.1/bp/pages/__init__.py", line 28, in <module>
    from .transfer import (
  File "/home/user/data/weboob-data/modules/2.1/bp/pages/transfer.py", line 27, in <module>
    from weboob.capabilities.bank import (
ImportError: cannot import name 'NotAvailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/app/node_modules/kresus/build/server/providers/weboob/py/main.py", line 897, in main
    weboob_connector.create_backend(bank_module, params, session)
  File "/home/user/app/node_modules/kresus/build/server/providers/weboob/py/main.py", line 511, in create_backend
    storage=self.storage
  File "/weboob/weboob/core/ouiboube.py", line 430, in build_backend
    return super(Weboob, self).build_backend(module_name, params, storage, name, nofail)
  File "/weboob/weboob/core/ouiboube.py", line 116, in build_backend
    module = self.modules_loader.get_or_load_module(module_name)
  File "/weboob/weboob/core/modules.py", line 117, in get_or_load_module
    self.load_module(module_name)
  File "/weboob/weboob/core/modules.py", line 159, in load_module
    raise ModuleLoadError(module_name, e)
weboob.exceptions.ModuleLoadError: cannot import name 'NotAvailable'

[2020-08-31T05:53:23.747] [ERROR] providers/weboob -    (error code: UNKNOWN_WEBOOB_MODULE)
[2020-08-31T05:53:23.770] [ERROR] poller - Error when polling accounts: Unable to load module bp.
Traceback (most recent call last):
  File "/weboob/weboob/core/modules.py", line 152, in load_module
    module = LoadedModule(imp.load_module(module_name, fp, pathname, description))
  File "/usr/lib/python3.5/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.5/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/user/data/weboob-data/modules/2.1/bp/__init__.py", line 20, in <module>
    from .module import BPModule
  File "/home/user/data/weboob-data/modules/2.1/bp/module.py", line 36, in <module>
    from .browser import BPBrowser, BProBrowser
  File "/home/user/data/weboob-data/modules/2.1/bp/browser.py", line 47, in <module>
    from .pages import (
  File "/home/user/data/weboob-data/modules/2.1/bp/pages/__init__.py", line 28, in <module>
    from .transfer import (
  File "/home/user/data/weboob-data/modules/2.1/bp/pages/transfer.py", line 27, in <module>
    from weboob.capabilities.bank import (
ImportError: cannot import name 'NotAvailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/app/node_modules/kresus/build/server/providers/weboob/py/main.py", line 897, in main
    weboob_connector.create_backend(bank_module, params, session)
  File "/home/user/app/node_modules/kresus/build/server/providers/weboob/py/main.py", line 511, in create_backend
    storage=self.storage
  File "/weboob/weboob/core/ouiboube.py", line 430, in build_backend
    return super(Weboob, self).build_backend(module_name, params, storage, name, nofail)
  File "/weboob/weboob/core/ouiboube.py", line 116, in build_backend
    module = self.modules_loader.get_or_load_module(module_name)
  File "/weboob/weboob/core/modules.py", line 117, in get_or_load_module
    self.load_module(module_name)
  File "/weboob/weboob/core/modules.py", line 159, in load_module
    raise ModuleLoadError(module_name, e)
weboob.exceptions.ModuleLoadError: cannot import name 'NotAvailable'

 Error
    at new KError (/home/user/app/node_modules/kresus/build/server/helpers.js:59:22)
    at callWeboob (/home/user/app/node_modules/kresus/build/server/providers/weboob/index.js:213:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[2020-08-31T05:53:23.770] [INFO] poller - Won't poll, access from bank cices with login xxx last fetch raised: ACTION_NEEDED.
[2020-08-31T05:53:23.770] [INFO] poller - All accounts have been polled.
[2020-08-31T05:53:23.771] [INFO] poller - Maybe sending reports...
[2020-08-31T05:53:23.771] [INFO] report-manager - Checking if user has enabled daily report...
[2020-08-31T05:53:23.777] [INFO] report-manager - No report to send (already sent for this frequency).
[2020-08-31T05:53:23.778] [INFO] report-manager - Checking if user has enabled weekly report...
[2020-08-31T05:53:23.780] [INFO] report-manager - User hasn't enabled weekly report.
[2020-08-31T05:53:23.781] [INFO] poller - Reports have been sent.
[2020-08-31T05:53:23.781] [INFO] init - Server is ready, let's start the show!
Assignee
Assign to
Time tracking