Find answers from the community

A
Autony
Offline, last seen 3 months ago
Joined September 25, 2024
A
Autony
Β·

Loader error

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/Users/autony053/Desktop/Python/test.py", line 49, in <module>
documents = loader.load_data()
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/llama_index/readers/llamahub_modules/file/base.py", line 142, in load_data
extracted_documents = reader.load_data(
^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/llama_index/readers/llamahub_modules/file/json/base.py", line 72, in load_data
return [Document("\n".join(useful_lines), extra_info=extra_info)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 332, in pydantic.main.BaseModel.init
TypeError: init() takes exactly 1 positional argument (2 given)

hello, can someone help me resolve this πŸ™
5 comments
A
L