llama-stack icon indicating copy to clipboard operation
llama-stack copied to clipboard

build fails to use shell configured python

Open thoraxe opened this issue 7 months ago • 6 comments

System Info

θ82° [thoraxe:~/.llama/distributions/remote-vllm] [ols-llamastack] 130 $ llama stack build --image-type venv
> Enter a name for your Llama Stack (e.g. my-local-stack): stack
> Enter the image type you want your Llama Stack to be built as (container or conda or venv): venv

Llama Stack is composed of several APIs working together. Let's select
the provider types (implementations) you want to use for these APIs.

Tip: use <TAB> to see options for the providers.

> Enter provider for API inference: remote::openai
> Enter provider for API safety: inline::llama-guard
> Enter provider for API agents: inline::meta-reference
> Enter provider for API vector_io: inline::meta-reference
> Enter provider for API datasetio: inline::localfs
> Enter provider for API scoring: inline::basic
> Enter provider for API eval: inline::meta-reference
> Enter provider for API post_training: inline::torchtune
> Enter provider for API tool_runtime: remote::model-context-protocol
> Enter provider for API telemetry: inline::meta-reference
 
 > (Optional) Enter a short description for your Llama Stack:
Using virtual environment llamastack-stack
Using CPython 3.9.21 interpreter at: /usr/bin/python3.9
Creating virtual environment at: llamastack-stack
Activate with: source llamastack-stack/bin/activate
Using Python 3.9.21 environment at: llamastack-stack
  × No solution found when resolving dependencies:
  ╰─▶ Because the current Python version (3.9.21) does not satisfy Python>=3.10 and all versions of llama-stack depend on Python>=3.10, we can conclude that all versions of llama-stack cannot be used.
      And because you require llama-stack, we can conclude that your requirements are unsatisfiable.
ERROR    2025-03-27 10:40:52,379 llama_stack.distribution.build:128 uncategorized: Failed to build target               
         llamastack-stack with return code 1                                                                            
Error building stack: Failed to build image llamastack-stack
θ87° [thoraxe:~/.llama/distributions/remote-vllm] [ols-llamastack] 1m13s 1 $ python --version
Python 3.11.5
θ78° [thoraxe:~/.llama/distributions/remote-vllm] [ols-llamastack] $ which python
~/.pyenv/shims/python

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

🐛 Describe the bug

.

Error logs

.

Expected behavior

.

thoraxe avatar Mar 27 '25 14:03 thoraxe