Open blurridge opened 2 months ago
This issue is stale because it has been open for 30 days with no activity.
Hi there,
Thank you for reporting the installation issue with rembg. It seems like you're encountering a problem while trying to install llvmlite, which is required for numba, in your environment.
Bug Description: When trying to install rembg using pip in a Python 3.10 environment, the installation fails with the following error messages:
FileNotFoundError: llvm-config not found. RuntimeError: llvm-config failed executing, indicating that the environment cannot locate the LLVM configuration. Steps to Reproduce:
Create a virtual environment with Python 3.10. Attempt to install rembg using pip install rembg. Environment Details:
OS Version: Mac OS Sonoma 14.6.1 Rembg Version: v2.0.59 Error Output: The error log indicates issues related to llvm-config, which is essential for building llvmlite. The specific error reads: RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
Install LLVM: Ensure that LLVM is installed on your system. You can install it using Homebrew: brew install llvm
Hi there,
Thank you for reporting the installation issue with rembg. It seems like you're encountering a problem while trying to install llvmlite, which is required for numba, in your environment.
Bug Description: When trying to install rembg using pip in a Python 3.10 environment, the installation fails with the following error messages:
FileNotFoundError: llvm-config not found. RuntimeError: llvm-config failed executing, indicating that the environment cannot locate the LLVM configuration. Steps to Reproduce:
Create a virtual environment with Python 3.10. Attempt to install rembg using pip install rembg. Environment Details:
OS Version: Mac OS Sonoma 14.6.1 Rembg Version: v2.0.59 Error Output: The error log indicates issues related to llvm-config, which is essential for building llvmlite. The specific error reads: RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
Install LLVM: Ensure that LLVM is installed on your system. You can install it using Homebrew: brew install llvm
Hello! This does not account for the fact though that it doesn't run on docker since I'm using the python3.10-slim image which is a debian image. Thanks though!
llvmlite requires at most llvm@10, but sonoma only has llvm@11 and above 😡
A variation on the same issue - that is the dependency on numba:
❯ uv pip install 'rembg>=v2.0.60'
Resolved 29 packages in 136ms
× Failed to download and build `numba==0.53.1`
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit code: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Python\uv\cache\builds-v0\.tmp7PNbyA\Lib\site-packages\setuptools\build_meta.py", line 334, in
get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\uv\cache\builds-v0\.tmp7PNbyA\Lib\site-packages\setuptools\build_meta.py", line 304, in
_get_build_requires
self.run_setup()
File "C:\Python\uv\cache\builds-v0\.tmp7PNbyA\Lib\site-packages\setuptools\build_meta.py", line 522, in
run_setup
super().run_setup(setup_script=setup_script)
File "C:\Python\uv\cache\builds-v0\.tmp7PNbyA\Lib\site-packages\setuptools\build_meta.py", line 320, in
run_setup
exec(code, locals())
File "<string>", line 50, in <module>
File "<string>", line 47, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.12.6; only versions >=3.6,<3.10 are supported.
help: `numba` (v0.53.1) was included because `rembg` (v2.0.60) depends on `pymatting` (v1.1.13) which depends
on `numba`
Describe the bug I've tried pip installing both on my docker container and my local machine and llvmlite does not build. Also already tried updating pip
To Reproduce Steps to reproduce the behavior:
Expected behavior Successful pip install
Images Input images to reproduce.
OS Version: Mac OS Sonoma 14.6.1
Rembg version: v2.0.59
Additional context