Skip to content

Error when installing bridge

I get the following error when installing the bridge.

$ ./venv/bin/python -m matrix_email_bridge -c config.yaml -g -r ./data/matrix-lmtp.yaml
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 184, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.8/runpy.py", line 143, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.8/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/matrix_email_bridge/__init__.py", line 1, in <module>
    from . import lmtp_bridge
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/matrix_email_bridge/lmtp_bridge.py", line 573, in <module>
    main()
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/matrix_email_bridge/lmtp_bridge.py", line 571, in main
    lmtp_bridge.run()
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/mautrix/bridge/bridge.py", line 83, in run
    self._prepare()
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/mautrix/bridge/bridge.py", line 105, in _prepare
    self.prepare_config(self.args.config, self.args.registration, self.args.base_config)
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/mautrix/bridge/bridge.py", line 128, in prepare_config
    self.config.update()
  File "/opt/matrix/matrix-lmtp/venv/lib/python3.8/site-packages/mautrix/util/config.py", line 151, in update
    raise ValueError("Can't update() without base config")
ValueError: Can't update() without base config

I've adjusted the config and placed it in /opt/matrix/matrix-lmtp