Skip to content

Error simply asking for help: TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx' #13

@loganmzz

Description

@loganmzz

Tried to get help documentation directly from CLI, but get an technical error.

Python version: 3.10.18

Command:

python3 -m pipx run robusta-cli --help

Output:

NOTE: running app 'robusta' from 'robusta-cli'
                                                                                                                                                                                                                          
 Usage: robusta [OPTIONS] COMMAND [ARGS]...                                                                                                                                                                               
                                                                                                                                                                                                                          
╭────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────────────────────╮
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/bin/robusta:7 in <module>                                                                                                                                                   │
│                                                                                                                                                                                                                        │
│   4 if __name__ == '__main__':                                                               ╭───────────────────── locals ──────────────────────╮                                                                     │
│   5 │   if sys.argv[0].endswith('.exe'):                                                     │ app = <typer.main.Typer object at 0x7feff0c12e00> │                                                                     │
│   6 │   │   sys.argv[0] = sys.argv[0][:-4]                                                   │ sys = <module 'sys' (built-in)>                   │                                                                     │
│ ❱ 7 │   sys.exit(app())                                                                      ╰───────────────────────────────────────────────────╯                                                                     │
│   8                                                                                                                                                                                                                    │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/main.py:338 in __call__                                                                                                                  │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/main.py:321 in __call__                                                                                                                  │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:1442 in __call__                                                                                                                 │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/core.py:728 in main                                                                                                                      │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/core.py:196 in _main                                                                                                                     │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:1186 in make_context                                                                                                             │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:1786 in parse_args                                                                                                               │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:1197 in parse_args                                                                                                               │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:2416 in handle_parse_result                                                                                                      │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:2355 in process_value                                                                                                            │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/decorators.py:539 in show_help                                                                                                           │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:730 in get_help                                                                                                                  │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/click/core.py:1064 in get_help                                                                                                                 │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/core.py:742 in format_help                                                                                                               │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/rich_utils.py:611 in rich_format_help                                                                                                    │
│                                                                                                                                                                                                                        │
│ /home/loganmzz/.cache/pipx/cc6c0d389f59b86/lib/python3.10/site-packages/typer/rich_utils.py:370 in _print_options_panel                                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'

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