danielgatis / rembg

Rembg is a tool to remove images background
MIT License
15.39k stars 1.75k forks source link

[BUG] Missing dependencies from pypi #631

Closed stefsmeets closed 1 month ago

stefsmeets commented 1 month ago

Describe the bug

When installing rembg, I get hit with missing dependencies when trying to run the code from the cli. I had to install these packages manually:

Afterwards, it worked fine. I didn't find any place like pyproject.toml where rembg declares its dependencies.

To Reproduce

python -m virtualenv .venv
. .venv/bin/activate
rembg

gives

Traceback (most recent call last):
  File "/home/stef/python/.venv/bin/rembg", line 5, in <module>
    from rembg.cli import main
  File "/home/stef/python/.venv/lib/python3.12/site-packages/rembg/cli.py", line 1, in <module>
    import click
ModuleNotFoundError: No module named 'click'

Expected behavior Works after installing from pypi

OS Version: Fedora 40, python 3.12

Rembg version: v2.0.56

Additional context Add any other context about the problem here.

nisaji commented 1 month ago

Maybe you are using pip install rembg. pip install rembg[cli] can install your listed packages.

Thank you.

stefsmeets commented 1 month ago

Yep, that's it! Thanks 😅