Skip to content

Smoothly handle CLI requests when datumaro is not installed with CLI support #2040

@JortBergfeld

Description

@JortBergfeld

Is your feature request related to a problem? Please describe.

When datumaro is installed without CLI support, the CLI can still be called, but throws a sort of import error, caused by lazy_import, see #2037

Describe the solution you'd like to propose.

When datumaro is installed without cli support, the cli should not be installed/callable at all. Alternatively, we can throw a user friendly error, describing datumaro has not been installed with the correct dependencies and pip install datumaro[cli] will resolve the problem.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement of existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions