Skip to content

cli - Missing dependency 'click' in default installation #594

Description

@alorence

Describe the bug
In a fresh install with uv tool install, the executable does not start because of missing 'click' dependency

To Reproduce

  • install using uv tool install deepdiff
  • run deep --help or any valid subcommand
$ uv tool install deepdiff
Resolved 2 packages in 222ms
Installed 2 packages in 8ms
 + deepdiff==9.0.0
 + orderly-set==5.5.0
Installed 1 executable: deep
$ deep 
Traceback (most recent call last):
  File "/home/alorence/.local/bin/deep", line 4, in <module>
    from deepdiff.commands import cli
  File "/home/alorence/.local/share/uv/tools/deepdiff/lib/python3.14/site-packages/deepdiff/commands.py", line 1, in <module>
    import click
ModuleNotFoundError: No module named 'click'

Expected behavior
The command line interface can be used globally on the machine

OS, DeepDiff version and Python version (please complete the following information):

  • OS: WSL (irrelevant)
  • Version: unknown
  • Python Version 3.14.4
  • DeepDiff Version 9.0.0

Additional context

The issue can be easily fixed by telling uv to install click in the same environment:

$ uv tool install --with click deepdiff
Resolved 3 packages in 5ms
Installed 3 packages in 11ms
 + click==8.3.2
 + deepdiff==9.0.0
 + orderly-set==5.5.0
Installed 1 executable: deep
$ deep
Usage: deep [OPTIONS] COMMAND [ARGS]...

  A simple command line tool.

Options:
  --help  Show this message and exit.

Commands:
  diff     Deep Diff Commandline
  extract  Deep Extract Commandline
  grep     Deep Grep Commandline
  patch    Deep Patch Commandline

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions