Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Missing dependencies from pypi #631

Closed
stefsmeets opened this issue May 14, 2024 · 2 comments
Closed

[BUG] Missing dependencies from pypi #631

stefsmeets opened this issue May 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@stefsmeets
Copy link

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:

  • click
  • filetype
  • asyncer
  • gradio
  • aiohttp
  • watchdog

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.

@stefsmeets stefsmeets added the bug Something isn't working label May 14, 2024
@nisaji
Copy link

nisaji commented May 23, 2024

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

Thank you.

@stefsmeets
Copy link
Author

Yep, that's it! Thanks 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants