Find answers from the community

Updated 12 months ago

Update

At a glance

The community member updated the llama-index library and encountered an error: "ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location)". Another community member suggested trying a fresh virtual environment, as it seemed the update was from a previous version. The original poster clarified that the update was from version 10.12 to 10.21.post1. A third community member provided a solution by uninstalling llama-index and llama-index-core, then reinstalling llama-index, which appeared to resolve the issue.

I just updated llama-index, and am now getting this error on existing code: "ImportError: cannot import name 'ChatMessage' from 'llama_index.core.llms' (unknown location)"
L
D
4 comments
Try with a completely fresh venv, seems like you updated from v0.9.x
No, updated from 10.12 to 10.21.post1
Just as an update, uninstalled llama-index and llama-index-core, then did a pip install llama-index and it appeared to work.
huh, super weird
Add a reply
Sign up and join the conversation on Discord