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)