Package Details: system-bridge 1:3.6.2-3

Git Clone URL: https://aur.archlinux.org/system-bridge.git (read-only, click to copy)
Package Base: system-bridge
Description: Bridges your system to other systems, like Home Assistant
Upstream URL: https://github.com/timmo001/system-bridge
Keywords: homeassistant iot sensors
Licenses: MIT
Submitter: gleb.zhulik
Maintainer: None
Last Packager: RubenKelevra
Votes: 3
Popularity: 0.000424
First Submitted: 2021-06-08 16:00 (UTC)
Last Updated: 2023-05-12 18:38 (UTC)

Latest Comments

RubenKelevra commented on 2024-07-19 23:53 (UTC)

@simona fixed those two packages

simona commented on 2024-04-30 10:28 (UTC)

can't install on 3.12 cause python-sqlalchemy2-stubs can't compile used by python-sqlmodel

uberben commented on 2023-10-05 15:37 (UTC)

Looks like the current version of pydantic isn't compatible with system-bridge 3.6.2. I'm getting the following error:

Oct 05 10:34:08 new-bendesktop systemd[1]: Started System Bridge.
Oct 05 10:34:09 new-bendesktop python3[1416913]: Traceback (most recent call last):
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "<frozen runpy>", line 198, in _run_module_as_main
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "<frozen runpy>", line 88, in _run_code
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "/usr/lib/python3.11/site-packages/systembridgebackend/__main__.py", line 9, in <module>
Oct 05 10:34:09 new-bendesktop python3[1416913]:     from systembridgeshared.database import Database
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "/usr/lib/python3.11/site-packages/systembridgeshared/database.py", line 9, in <module>
Oct 05 10:34:09 new-bendesktop python3[1416913]:     from sqlmodel import Session, SQLModel, create_engine, select
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "/usr/lib/python3.11/site-packages/sqlmodel/__init__.py", line 137, in <module>
Oct 05 10:34:09 new-bendesktop python3[1416913]:     from .main import SQLModel as SQLModel
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "/usr/lib/python3.11/site-packages/sqlmodel/main.py", line 27, in <module>
Oct 05 10:34:09 new-bendesktop python3[1416913]:     from pydantic.errors import ConfigError, DictError
Oct 05 10:34:09 new-bendesktop python3[1416913]:   File "/usr/lib/python3.11/site-packages/pydantic/_migration.py", line 295, in wrapper
Oct 05 10:34:09 new-bendesktop python3[1416913]:     raise PydanticImportError(f'`{import_path}` has been removed in V2.')
Oct 05 10:34:09 new-bendesktop python3[1416913]: pydantic.errors.PydanticImportError: `pydantic.errors:ConfigError` has been removed in V2.
Oct 05 10:34:09 new-bendesktop python3[1416913]: For further information visit https://errors.pydantic.dev/2.3/u/import-error
Oct 05 10:34:09 new-bendesktop systemd[1]: system-bridge.service: Main process exited, code=exited, status=1/FAILURE
Oct 05 10:34:09 new-bendesktop systemd[1]: system-bridge.service: Failed with result 'exit-code'.

RubenKelevra commented on 2023-04-28 01:34 (UTC)

Ah, I fixed that already in python-aiogithubapi a while ago.

RubenKelevra commented on 2023-04-28 01:28 (UTC)

@InternetFind, @2tefan missing python-backoff sounds like an issue with the package aiogithubapi.

I've added it temporarily here.

2tefan commented on 2023-01-08 15:53 (UTC)

System Bridge also crashes on my system without lshw. It also needs python-backoff as @InternetFind found out.

Here is a updated PKGBUILD:

# Maintainer: @RubenKelevra <cyrond@gmail.com>
# Contributor: Gleb Sinyavskiy <zhulik.gleb@gmail.com>

_archive_extension='tar.gz'
pkgname=system-bridge
pkgver=3.5.1
pkgrel=1
epoch=1
pkgdesc="Bridges your system to other systems, like Home Assistant"
arch=('any')
url="https://github.com/timmo001/$pkgname"
license=(MIT)
depends=(
    python-pydantic
    python-typer
    python-incremental
    python-keyboard
    python-mutagen
    python-plyer
    python-psutil
    python-sanic
    python-zeroconf
    python-shellingham
    python-tabulate
    python-aiohttp
    python-pyperclip
    pyside6
    python-appdirs
    python-colorlog
    python-cryptography
    python-pandas
    python-screeninfo
        python-aiofiles
    python-fastapi
    python-python-multipart
    uvicorn
        python-aiogithubapi
        python-sqlmodel
    python-backoff
    lshw
)
makedepends=(
    yarn
    node-gyp
    python-build
    python-installer
    python-wheel
    libxss
    gtk3
    nss
)
optdepends=(
    'upower: To get battery information'
)
source=(
    "$pkgname-$pkgver.$_archive_extension::https://github.com/timmo001/$pkgname/archive/refs/tags/$pkgver.$_archive_extension"
        "$pkgname.desktop"
        "$pkgname"
        "$pkgname.service"
)
b2sums=('f3b99654904c6a38b0efe91b6de0c2969d9c199bf6f14cf56cc3e0f2500ffb99382139e5377cd81974076f12f5e2073dc3a29098487a312c6e2d8e14ee80aa07'
        'fa5f2b2bb64d44f7791fe8631481cf294f0a3afa88f1ac7fdb55508df9acc4ad26b1723cadebbf1bc09369c2e3732c6628b6b06d44c3bdcebee0d5913d85d097'
        '26634fe43624791f7ae6fe85e70792fcf67fcd5a9997ba40043c49a636d939d610eb5e6ededdf1e6723dd8280e924160e72a8469501a1436ad67f28eab2d4fef'
        '03852934e853a7a5973e4139a9c51a160df81af1fa958ac6550a6525aa97ad3ebc983bf4a662cce345e04cc0451912687d4c199c9152c7160b173abad2b73b37')
changelog=$pkgname.changelog

prepare() {
    cd "$srcdir/$pkgname-$pkgver/frontend"

    yarn install
}
build() {
    for command in 'shared' 'backend' 'cli' 'connector' 'frontend' 'gui'; do

        cd "$srcdir/$pkgname-$pkgver/$command"
        if [ "$command" == 'frontend' ]; then
            yarn build
            yarn export
        fi
        python -m build --wheel --no-isolation
    done
}

package() {
    for command in 'shared' 'backend' 'cli' 'connector' 'frontend' 'gui'; do

        cd "$srcdir/$pkgname-$pkgver/$command"

        python -m installer --destdir="$pkgdir" dist/*.whl
    done

    cd "$srcdir"
    install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -Dm 644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
    install -Dm 644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"

    cd "$srcdir/$pkgname-$pkgver"
    install -Dm 644 "resources/$pkgname.svg" "$pkgdir/usr/share/icons/$pkgname.svg"
        install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

InternetFind commented on 2022-12-15 13:37 (UTC)

I believe that lshw should be made non-optional, as I wasn't able to run without it and system-bridge website doesn't say that it's optional: https://system-bridge.timmo.dev/docs/install

InternetFind commented on 2022-12-15 13:29 (UTC)

Requires dependency python-backoff to run


Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/systembridgebackend/__main__.py", line 15, in <module>
    from .modules.system import System
  File "/usr/lib/python3.10/site-packages/systembridgebackend/modules/system/__init__.py", line 11, in <module>
    from aiogithubapi import (
  File "/usr/lib/python3.10/site-packages/aiogithubapi/__init__.py", line 20, in <module>
    from .device import GitHubDeviceAPI
  File "/usr/lib/python3.10/site-packages/aiogithubapi/device.py", line 14, in <module>
    from .client import GitHubClient
  File "/usr/lib/python3.10/site-packages/aiogithubapi/client.py", line 28, in <module>
    from .legacy.client import AIOGitHubAPIClient as LegacyAIOGitHubAPIClient
  File "/usr/lib/python3.10/site-packages/aiogithubapi/legacy/client.py", line 15, in <module>
    from ..helpers import async_call_api
  File "/usr/lib/python3.10/site-packages/aiogithubapi/helpers.py", line 9, in <module>
    from .legacy.helpers import (
  File "/usr/lib/python3.10/site-packages/aiogithubapi/legacy/helpers.py", line 8, in <module>
    import backoff
ModuleNotFoundError: No module named 'backoff'

xiayesuifeng commented on 2022-11-10 12:15 (UTC)

Requires dependency on https://github.com/tiangolo/sqlmodel to run

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/systembridgecli/__main__.py", line 12, in <module>
    from systembridgeshared.database import TABLE_MAP, Database
  File "/usr/lib/python3.10/site-packages/systembridgeshared/database.py", line 9, in <module>
    from sqlmodel import Session, SQLModel, create_engine, select
ModuleNotFoundError: No module named 'sqlmodel'

gleb.zhulik commented on 2021-12-12 14:20 (UTC)

There is not way to build 2.x versions because some of it's node dependencies does not support node 17 https://github.com/timmo001/system-bridge/issues/1154