Find answers from the community

Updated 2 years ago

Import

ImportError: cannot import name 'download_loader' from partially initialized module 'llama_index' (most likely due to a circular import) (/root/miniconda3/envs/hub/lib/python3.8/site-packages/llama_index/init.py) llama-hub What is the problem with this happening at runtime
L
t
4 comments
Uhhh not sure what's going on here. What do your imports look like?
the improrts def download_loader(
loader_class: str,
loader_hub_url: str = LOADER_HUB_URL,
refresh_cache: Optional[bool] = False,
use_gpt_index_import: bool = False,
custom_path: Optional[str] = None,
) -> Type[BaseReader]:
"""Download a single loader from the Loader Hub.
Sorry for the interruption, I've solved it, a filename conflict
That was my next question haha nice catch!
Add a reply
Sign up and join the conversation on Discord