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)"