Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

[Bug]: ImportError: attempted relative import with no known parent package #857

Open
josephykwang opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@josephykwang
Copy link

Bug Description

llamaindex-cli download-llamapack LLMCompilerAgentPack --download-dir ./llm_compiler_agent_pack
Traceback (most recent call last):
  File "/home/user/venv_idx/bin/llamaindex-cli", line 8, in <module>
    sys.exit(main())
  File "/home/user/venv_idx/lib/python3.10/site-packages/llama_index/command_line/command_line.py", line 127, in main
    args.func(args)
  File "/home/user/venv_idx/lib/python3.10/site-packages/llama_index/command_line/command_line.py", line 85, in <lambda>
    func=lambda args: handle_download_llama_pack(**vars(args))
  File "/home/user/venv_idx/lib/python3.10/site-packages/llama_index/command_line/command_line.py", line 21, in handle_download_llama_pack
    download_llama_pack(
  File "/home/user/venv_idx/lib/python3.10/site-packages/llama_index/llama_pack/download.py", line 31, in download_llama_pack
    pack_cls = download_llama_module(
  File "/home/user/venv_idx/lib/python3.10/site-packages/llama_index/download/module.py", line 255, in download_llama_module
    spec.loader.exec_module(module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/user/llm_compiler_agent_pack/base.py", line 11, in <module>
    from .step import LLMCompilerAgentWorker
ImportError: attempted relative import with no known parent package

Version

0.9.29

Steps to Reproduce

pip list | grep llama
gpt-index                0.6.0a1    /home/user/llama_index
llama-hub                0.0.70
llama-index              0.9.29

Relevant Logs/Tracbacks

No response

@josephykwang josephykwang added bug Something isn't working triage labels Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant