Skip to content

uv installation not working as expected #31

@aakashhgoud

Description

@aakashhgoud

I have uv installed properly. Installed the cli tool using "uv tool install pipecat-ai-cli". Shows two executables installed correctly and even added the PATH. But still receiving the following error when run as a user and also as an administrator in Windows.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\aakas\.local\bin\pc.exe\__main__.py", line 4, in <module>
    from pipecat_cli.main import app
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\pipecat_cli\main.py", line 32, in <module>
    extension = ep.load()
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\importlib\metadata\__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\importlib\__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\pipecatcloud\cli\entry_point.py", line 86, in <module>
    entrypoint_cli = typer.main.get_command(entrypoint_cli_typer)
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 350, in get_command
    click_command: click.Command = get_group(typer_instance)
                                   ~~~~~~~~~^^^^^^^^^^^^^^^^
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 331, in get_group
    group = get_group_from_info(
        TyperInfo(typer_instance),
    ...<2 lines>...
        suggest_commands=typer_instance.suggest_commands,
    )
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 478, in get_group_from_info
    sub_group = get_group_from_info(
        sub_group_info,
    ...<2 lines>...
        suggest_commands=suggest_commands,
    )
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 470, in get_group_from_info
    command = get_command_from_info(
        command_info=command_info,
        pretty_exceptions_short=pretty_exceptions_short,
        rich_markup_mode=rich_markup_mode,
    )
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 576, in get_command_from_info
    ) = get_params_convertors_ctx_param_name_from_function(command_info.callback)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\main.py", line 547, in get_params_convertors_ctx_param_name_from_function
    parameters = get_params_from_function(callback)
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\typer\utils.py", line 109, in get_params_from_function
    signature = inspect.signature(func, eval_str=True)
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\inspect.py", line 3312, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                   globals=globals, locals=locals, eval_str=eval_str,
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                   annotation_format=annotation_format)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\inspect.py", line 3027, in from_callable
    return _signature_from_callable(obj, sigcls=cls,
                                    follow_wrapper_chains=follow_wrapped,
                                    globals=globals, locals=locals, eval_str=eval_str,
                                    annotation_format=annotation_format)
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\inspect.py", line 2502, in _signature_from_callable
    return _signature_from_function(sigcls, obj,
                                    skip_bound_arg=skip_bound_arg,
                                    globals=globals, locals=locals, eval_str=eval_str,
                                    annotation_format=annotation_format)
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\inspect.py", line 2325, in _signature_from_function
    annotations = get_annotations(func, globals=globals, locals=locals, eval_str=eval_str,
                                  format=annotation_format)
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\annotationlib.py", line 890, in get_annotations
    ann = _get_dunder_annotations(obj)
  File "C:\Users\aakas\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\annotationlib.py", line 1059, in _get_dunder_annotations
    ann = getattr(obj, "__annotations__", None)
  File "C:\Users\aakas\AppData\Roaming\uv\tools\pipecat-ai-cli\Lib\site-packages\pipecatcloud\cli\commands\secrets.py", line 69, in __annotate__
    secrets: list[str] = typer.Argument(
             ~~~~^^^^^
TypeError: 'function' object is not subscriptable

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