llama-stack
llama-stack copied to clipboard
TypeError: expected str, bytes or os.PathLike object, not NoneType
System Info
Linux Ubuntu Anaconda
Information
- [X] The official example scripts
- [ ] My own modified scripts
🐛 Describe the bug
llama stack build /tmp/a/llama/anaconda/envs/stack/lib/python3.10/site-packages/pydantic/_internal/_fields.py:172: UserWarning: Field name "schema" in "JsonResponseFormat" shadows an attribute in parent "BaseModel" warnings.warn(
Enter a name for your Llama Stack (e.g. my-local-stack): my-local-stack Enter the image type you want your Llama Stack to be built as (docker or conda): conda
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: meta-reference Enter provider for API safety: meta-reference Enter provider for API agents: meta-reference Enter provider for API memory: meta-reference Enter provider for API datasetio: meta-reference Enter provider for API scoring: meta-reference Enter provider for API eval: meta-reference Enter provider for API telemetry: meta-reference
(Optional) Enter a short description for your Llama Stack: Traceback (most recent call last): File "/tmp/a/llama/anaconda/envs/stack/bin/llama", line 8, in
sys.exit(main()) File "/home/guilherme/local/llama-stack/llama_stack/cli/llama.py", line 44, in main parser.run(args) File "/home/guilherme/local/llama-stack/llama_stack/cli/llama.py", line 38, in run args.func(args) File "/home/guilherme/local/llama-stack/llama_stack/cli/stack/build.py", line 195, in _run_stack_build_command self._run_stack_build_command_from_build_config(build_config) File "/home/guilherme/local/llama-stack/llama_stack/cli/stack/build.py", line 255, in _run_stack_build_command_from_build_config return_code = build_image(build_config, build_file_path) File "/home/guilherme/local/llama-stack/llama_stack/distribution/build.py", line 104, in build_image script = pkg_resources.resource_filename( File "/tmp/a/llama/anaconda/envs/stack/lib/python3.10/site-packages/pkg_resources/init.py", line 1384, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/tmp/a/llama/anaconda/envs/stack/lib/python3.10/site-packages/pkg_resources/init.py", line 424, in get_provider return _find_adapter(_provider_factories, loader)(module) File "/tmp/a/llama/anaconda/envs/stack/lib/python3.10/site-packages/pkg_resources/init.py", line 1667, in init self.module_path = os.path.dirname(getattr(module, 'file', '')) File "/tmp/a/llama/anaconda/envs/stack/lib/python3.10/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType