Find answers from the community

Updated 11 months ago

hi when using the download_loader or if

hi when using the download_loader or if i use a DataConnector from llama_hub that calls the download_loader in my python project i get this error has anyone experienced this am i missing something?

llama-hub==0.0.77
llama_index==0.9.40

running this code

from llama_index import download_loader download_loader("GithubRepositoryReader")

returns this error for any loader

Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/local/lib/python3.11/site-packages/llama_index/readers/download.py", line 49, in download_loader reader_cls = download_llama_module( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/llama_index/download/module.py", line 217, in download_llama_module module_info = get_module_info( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/llama_index/download/module.py", line 69, in get_module_info library = json.loads(library_raw_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^

json.decoder.JSONDecodeError: Unterminated string starting at: line 561 column 3 (char 10226)
L
r
5 comments
I'm not able to reproduce this, it works fine for me πŸ€”
Maybe add download_loader("GithubRepositoryReader", refresh_cache=True)
what version of python are you using?
that doesnt work i already tried that
Add a reply
Sign up and join the conversation on Discord