llama_index
llama_index copied to clipboard
Cannot find reference 'download_loader' in '__init__.py'
from gpt_index import GPTListIndex, download_loader
PandasCSVReader = download_loader("PandasCSVReader")
PyCharm Error:(5, 37) Cannot find reference 'download_loader' in '__init__.py'
It does, however, run successfully.
I tried this one too, but didn't work. from gpt_index.readers.download import download_loader
Hmm weird. I'm not sure, does this work without error in a normal python interpreter?
@srinimanickam @fredzannarbor Upgrading to latest version of gpt_index should fix the issue.
@emptycrown I just used the latest version and getting the same error. Doesn't seem to work
ImportError Traceback (most recent call last) Cell In [117], line 2 1 import gpt_index ----> 2 from gpt_index import download_loader 3 import os 4 gpt_index.download_loader('NotionPageReader')
ImportError: cannot import name 'download_loader' from 'gpt_index' (c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\gpt_index_init_.py)
Name: gpt-index Version: 0.4.7
@mangate does this work with a python interpreter?
Hi, this was solved, apparently installing gpt-index directly instead of llama-index solves this (I guess llama-index doesn't use the latest version of gpt-index)
@mangate Ohhhh I see, you were using llama-index.
Just a heads up, llamahub now uses llama_index imports by default. If you upgrade to the latest version (v0.4.8), please set use_gpt_index_import=True
during the download_loader call.
will send out a broader announcement about this soon!