danielgatis / rembg

Rembg is a tool to remove images background
MIT License
15.46k stars 1.76k forks source link

[BUG] The build with build-exe was successful, but an error was reported when running #543

Closed Onekki closed 6 months ago

Onekki commented 8 months ago

Describe the bug The build with build-exe was successful, but an error was reported when running: Missing dependency: 'jsonschema' Please, install rembg with the cli feature: pip install rembg[cli] Traceback (most recent call last): File "cli.py", line 12, in main File "pkg_resources__init__.py", line 909, in require File "pkg_resources__init__.py", line 795, in resolve pkg_resources.DistributionNotFound: The 'jsonschema' distribution was not found and is required by the application

To Reproduce

  1. pip install -e .[cli]
  2. pip install pyinstaller
  3. pyinstaller -y -p ./rembg rembg.py
  4. ./dist/rembg/rembg.exe

Expected behavior Show cli help info

Images No images required

OS Version: Windows 11

Rembg version: v2.0.21

Additional context Nothing

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.