Skip to content

ModuleNotFoundError: No module named 'llama_index.readers.schema' #1

@leavenotrace

Description

@leavenotrace

when running, display:
ModuleNotFoundError: No module named 'llama_index.readers.schema'

024-03-04 23:39:40.385 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/code/ai/trevorhack/streamlit_app.py", line 18, in
from llama_hub.tools.google_search.base import GoogleSearchToolSpec
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/init.py", line 2, in
from llama_hub.tools.google_search.base import (
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/base.py", line 7, in
from llama_index.readers.schema.base import Document
ModuleNotFoundError: No module named 'llama_index.readers.schema'
2024-03-04 23:39:50.845 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/code/ai/trevorhack/streamlit_app.py", line 18, in
from llama_hub.tools.google_search.base import GoogleSearchToolSpec
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/init.py", line 2, in
from llama_hub.tools.google_search.base import (
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/base.py", line 7, in
from llama_index.readers.schema.base import Document
ModuleNotFoundError: No module named 'llama_index.readers.schema'
2024-03-04 23:40:46.281 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/code/ai/trevorhack/streamlit_app.py", line 18, in
from llama_hub.tools.google_search.base import GoogleSearchToolSpec
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/init.py", line 2, in
from llama_hub.tools.google_search.base import (
File "/usr/local/lib/python3.10/dist-packages/llama_hub/tools/google_search/base.py", line 7, in
from llama_index.readers.schema.base import Document
ModuleNotFoundError: No module named 'llama_index.readers.schema'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions