
























Thanks for writing and sharing these Home Assistant builds.
I was trying to install this front end and am using uv to manage my virtual environments I created and activated the virtual environment.
which python
/home/user/aur/.venv/bin/python
But when I tried to install the package with makepkg -sri it complained it that a virtual environment couldn't be found.
==> Making package: python-home-assistant-frontend 20260304.0-1 (Wed Mar 18 08:25:57 2026)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for neil:
resolving dependencies...
looking for conflicting packages...
Packages (2) python-attrs-25.4.0-3 python-pip-26.0.1-1
Total Installed Size: 16.86 MiB
:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring [########################################################] 100%
(2/2) checking package integrity [########################################################] 100%
(2/2) loading package files [########################################################] 100%
(2/2) checking for file conflicts [########################################################] 100%
(2/2) checking available disk space [########################################################] 100%
:: Processing package changes...
(1/2) installing python-attrs [########################################################] 100%
(2/2) installing python-pip [########################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
==> Extracting sources...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
ERROR: Could not find an activated virtualenv (required).
==> ERROR: A failure occurred in build().
This was because using uv the call to pip needs preceding with uv, and so the global /usr/bin/pip was being called instead, which can install packages system-wide when called as user.
I needed to modify line 11 of PKGBUILD...
build() {
uv pip install --no-deps --target="home-assistant-frontend" --upgrade home-assistant-frontend==${pkgver}
}
...and with that change I could build and install the package.
venvI think though that even if I wasn't using uv this would still have failed because the build requires a virtual environment since /usr/bin/pip can't install packages at the system level when run as user as is the case when running makepkg -sri
Thus, if looking to build and install this package you have to have created a virtual environment and activated, which requires python-venv to be installed at the system level.
sudo pacman -Syu python-venv
git clone https://aur.archlinux.org/python-home-assistant-frontend.git
cd python-home-assistant-frontend
python -m venv ha-venv
source ha-venv/bin/activate
makepkg -sri
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
It installs cleanly in a chroot, so I'm guessing there's an issue with your
uvenvironment.