Describe the bug
When trying to run letta with Python 3.10, getting a Pydantic schema generation error related to AsyncGenerator typing. The error occurs when trying to import the letta package, specifically in the llama-index integration.
Error: PydanticSchemaGenerationError: Unable to generate pydantic-core schema for typing.AsyncGenerator[str, NoneType]
Please describe your setup
[x] How did you install letta?
pip install letta
[x] Describe your setup
OS: MacOS
Running via Terminal (zsh)
Setup Details:
Python 3.12.7 (first attempt from your system Python)
Python 3.10.x (our second attempt via Homebrew)
Virtual Environment: Yes
Package versions:
- letta==0.5.3
- openai==1.55.0
- python-dotenv==1.0.1
- pydantic==1.10.13
- llama-index==0.8.54
Error Reproduction Steps:
Create virtual environment with Python 3.10
Install packages
Run letta run command
Error occurs during package import
Screenshots
Additional context
The error seems to be related to version compatibility between pydantic v2 and llama-index's AsyncGenerator usage in the QueryEndEvent class. Have tried multiple package version combinations but the error persists.
Describe the bug When trying to run letta with Python 3.10, getting a Pydantic schema generation error related to AsyncGenerator typing. The error occurs when trying to import the letta package, specifically in the llama-index integration.
Error:
PydanticSchemaGenerationError: Unable to generate pydantic-core schema for typing.AsyncGenerator[str, NoneType]
Please describe your setup
pip install letta
Setup Details:
Error Reproduction Steps:
letta run
commandScreenshots
Additional context The error seems to be related to version compatibility between pydantic v2 and llama-index's AsyncGenerator usage in the QueryEndEvent class. Have tried multiple package version combinations but the error persists.
Not using local LLM, using OpenAI API.