Replies: 2 comments 4 replies
-
The error message Try updating pip install --upgrade typing-extensions If the issue persists, create a fresh virtual environment and reinstall the necessary packages: # Create a new virtual environment
python -m venv llama_index_env
# Activate the virtual environment
# On Windows
llama_index_env\Scripts\activate
# On Unix or MacOS
source llama_index_env/bin/activate
# Install the required packages
pip install llama_index==0.10.37
pip install typing-extensions This should help resolve the |
Beta Was this translation helpful? Give feedback.
-
Exactly @ZhengRui! Ideally it should work with Python 3.10 but it is not working. |
Beta Was this translation helpful? Give feedback.
-
Issue Description:
I am encountering an issue with importing modules like SimpleDirectoryReader from llama_index.core in Python 3.10. Previously, this functionality worked correctly, but now I'm receiving the following error message:
TypeError: Plain typing.TypeAlias is not valid as type argument.
I am using llama-index version 0.10.37.
I have reviewed the project's documentation and attempted common troubleshooting steps without success. Any guidance or suggestions on how to resolve this issue would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions