Find answers from the community

Updated 2 years ago

Trying from gpt index import

At a glance

A community member is encountering an ImportError when trying to use the SimpleDirectoryReader from the gpt_index library. They suspect this may be due to recent updates to the LangChain library. Another community member suggests changing the Python version to 3.10.10, as it seems to be working fine with all packages.

Trying: from gpt_index import SimpleDirectoryReader
Gives: ImportError: cannot import name 'AIMessage' from 'langchain.schema' (/home/richard/miniconda3/lib/python3.8/site-packages/langchain/schema.py)

Maybe because of recent updates to LangChain?
t
1 comment
change python version to 3.10.10. it seems 3.10 is working fine with all packages
Add a reply
Sign up and join the conversation on Discord