Skip to content

Profile --help raises an exception #8

Description

@pakal

Thanks for the nice tool !

The CLI seems to have just a dependency breakage :

Python v3.13.3 (.venv_313) 
❯ profyle --help
                                                                                                                                                                                                                                            
 Usage: profyle [OPTIONS] COMMAND [ARGS]...                                                                                                                                                                                                 
                                                                                                                                                                                                                                            
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /workspace/.venv_temp/bin/profyle:8 in <module>                     │
│                                                                                                  │
│   5 from profyle.main import app                                                                 │
│   6 if __name__ == '__main__':                                                                   │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])                         │
│ ❱ 8 │   sys.exit(app())                                                                          │
│   9                                                                                              │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ __annotations__ = {}                                                                         │ │
│ │    __builtins__ = <module 'builtins' (built-in)>                                             │ │
│ │      __cached__ = None                                                                       │ │
│ │         __doc__ = None                                                                       │ │
│ │        __file__ = '/workspace/.venv_temp/bin/profyle'           │ │
│ │      __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x72b959fa5e00>     │ │
│ │        __name__ = '__main__'                                                                 │ │
│ │     __package__ = None                                                                       │ │
│ │        __spec__ = None                                                                       │ │
│ │             app = <typer.main.Typer object at 0x72b957209010>                                │ │
│ │              re = <module 're' from                                                          │ │
│ │                   '/home/.pyenv/versions/3.13.3/lib/python3.13/re/__init__.py'>     │ │
│ │             sys = <module 'sys' (built-in)>                                                  │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/main.py:32 │
│ 8 in __call__                                                                                    │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/main.py:31 │
│ 1 in __call__                                                                                    │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:14 │
│ 42 in __call__                                                                                   │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/core.py:77 │
│ 8 in main                                                                                        │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/core.py:21 │
│ 5 in _main                                                                                       │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:11 │
│ 86 in make_context                                                                               │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:17 │
│ 86 in parse_args                                                                                 │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:11 │
│ 97 in parse_args                                                                                 │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:24 │
│ 16 in handle_parse_result                                                                        │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:23 │
│ 55 in process_value                                                                              │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/decorators │
│ .py:539 in show_help                                                                             │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:73 │
│ 0 in get_help                                                                                    │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/click/core.py:10 │
│ 64 in get_help                                                                                   │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/core.py:79 │
│ 1 in format_help                                                                                 │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/rich_utils │
│ .py:606 in rich_format_help                                                                      │
│                                                                                                  │
│ /workspace/.venv_temp/lib/python3.13/site-packages/typer/rich_utils │
│ .py:369 in _print_options_panel                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'


My pip packages:

❯ pip freeze
annotated-types==0.7.0
anyio==4.10.0
click==8.2.1
colorama==0.4.6
commonmark==0.9.1
fastapi==0.116.1
h11==0.16.0
idna==3.10
Jinja2==3.1.6
MarkupSafe==3.0.2
objprint==0.3.0
profyle==0.3.0
pydantic==2.11.7
pydantic-settings==2.10.1
pydantic_core==2.33.2
Pygments==2.19.2
python-dotenv==1.1.1
rich==12.6.0
shellingham==1.5.4
sniffio==1.3.1
starlette==0.47.2
typer==0.7.0
typing-inspection==0.4.1
typing_extensions==4.14.1
uvicorn==0.35.0
viztracer==0.16.3


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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions