





















@bannert I just rebuilt with the python-numpy and had no issues. python-gradio doesn't have python-numpy1 under dependencies. Perhaps clean build python-gradio? I provided the PKGBUILD I used for python-rembg.
# Maintainer: Winux <winux@winux.it>
pkgname=python-rembg
_pkgname=rembg
pkgver=2.0.67
pkgrel=1
pkgdesc="Rembg is a tool to remove images background"
arch=('any')
url="https://github.com/danielgatis/rembg"
license=('MIT')
depends=('python' 'python-jsonschema' 'python-numpy' 'python-onnxruntime' 'python-opencv' 'python-pillow' 'python-pooch' 'python-pymatting' 'python-scikit-image' 'python-scipy' 'python-tqdm' 'python-aiohttp' 'python-click' 'python-fastapi' 'python-filetype' 'python-gradio' 'python-python-multipart' 'uvicorn' 'python-watchdog' 'python-asyncer')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-twine')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/danielgatis/rembg/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('eff32b41b667f648bb0543a41aa836f3119b167700e836f3ddb3483b6252170b')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
Installation fails with this error:
error: can't build python-rembg-2.0.67-1, deps not satisfied: python-numpy1 python-gradio
error: packages failed to build: python-numpy1-1.26.4-5 python-gradio-pdf-0.0.22-1 python-gradio-client-1.12.1-1 python-safehttpx-0.1.6-4 python-gradio-5.44.1-1 python-rembg-2.0.67-1
I've gotten python-rembg to build and work with python-numpy by just swapping them in the pkgbuild
Unfortunately not as upstream only supports numpy version 1.xx
is there a chance that python-numpy1 could be upgraded to the latest python-numpy-2.1.3.1 (as of this post)?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
m solution:
1.
rembgInstallation (Recommended Method)Due to conflicts between system
numbaandllvmlitepackages on Arch Linux, it is recommended to runrembgin an isolated virtual environment.Prerequisites
uv(Fast Python package manager)Installation Steps
Usage
2.
python-gradioAUR Installation (System Method)If installing
python-gradiofrom AUR, you may encounter build errors.Issues & Fixes
python-gradio<->python-gradio-client.python-gradio-clientfirst, thenpython-gradio.EACCES):pnpmtries to write to/usr/local.PKGBUILDto use a localPNPM_HOME.Patched
PKGBUILDSnippetAdd this to the
build()function inPKGBUILD: