llama-stack: llama cli does not work on mac Sequoia
Hi, I have installed llama cli, but getting below error for any command. I installed it with pip3 install llama-stack. This prevents further usage of llama-stack, could you please guide to address this issue?
llama stack build --list-templates
Traceback (most recent call last):
File "/usr/local/bin/llama", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/llama.py", line 42, in main
parser = LlamaCLIParser()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/llama.py", line 32, in __init__
StackParser.create(subparsers)
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/subcommand.py", line 16, in create
return cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/stack/stack.py", line 33, in __init__
StackListProviders.create(subparsers)
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/subcommand.py", line 16, in create
return cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/stack/list_providers.py", line 21, in __init__
self._add_arguments()
File "/usr/local/lib/python3.11/site-packages/llama_stack/cli/stack/list_providers.py", line 25, in _add_arguments
from llama_stack.distribution.distribution import stack_apis
File "/usr/local/lib/python3.11/site-packages/llama_stack/distribution/distribution.py", line 13, in <module>
from llama_stack.apis.agents import Agents
File "/usr/local/lib/python3.11/site-packages/llama_stack/apis/agents/__init__.py", line 7, in <module>
from .agents import * # noqa: F401 F403
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/llama_stack/apis/agents/agents.py", line 155, in <module>
class MemoryToolDefinition(ToolDefinitionCommon):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
File "pydantic/fields.py", line 497, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 476, in pydantic.fields.ModelField._get_field_info
ValueError: cannot specify `Annotated` and value `Field`s together for 'query_generator_config'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (6 by maintainers)
By the way, we also updated packages to 0.0.37 now – can you re-install and give it a try again?
I think there’s something else going on. Can you please run a couple commands for me:
conda env listconda activate llamastack-stack && pip list | grep pydanticAlso – if you want, could you hop on over to our Discord at https://discord.com/channels/1257833999603335178/1257834000190275586 and we can debug this more synchronously perhaps.