Find answers from the community

Updated 3 months ago

**LlamaIndex CLI error**

LlamaIndex CLI error

Whenever I try to create a new llama-pack I run into this weird error:

Plain Text
llamaindex-cli new-package --kind "packs" --name "pack-test"

Plain Text
Traceback (most recent call last):
  File "/workspaces/llama_index/.venv/bin/llamaindex-cli", line 6, in <module>
    sys.exit(main())
  File "/workspaces/llama_index/.venv/lib/python3.10/site-packages/llama_index/cli/command_line.py", line 269, in main
    args.func(args)
  File "/workspaces/llama_index/.venv/lib/python3.10/site-packages/llama_index/cli/command_line.py", line 263, in <lambda>
    new_package_parser.set_defaults(func=lambda args: handle_init_package(**vars(args)))
  File "/workspaces/llama_index/.venv/lib/python3.10/site-packages/llama_index/cli/command_line.py", line 26, in handle_init_package
    init_new_package(integration_name=name, integration_type=kind, prefix=prefix)
  File "/workspaces/llama_index/.venv/lib/python3.10/site-packages/llama_index/cli/new_package/base.py", line 120, in init_new_package
    shutil.copyfile(common_path + "/BUILD", pkg_path + "/BUILD")
  File "/usr/local/python/3.10.13/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/workspaces/llama_index/.venv/lib/python3.10/site-packages/llama_index/cli/new_package/common/BUILD'

I believe this is the cause of an error my PR is currently experiencing. Not sure how to interpret these errors.
L
n
7 comments
I fixed this very recently!
You may have to update the cli package

pip install -U llama-index-cli
Impressive as always
I am on TOP of things this week haha
From outside viewers it really seems like you're always on top of things so I can't imagine what your productivity looks like this week 😁
Add a reply
Sign up and join the conversation on Discord