Find answers from the community

Updated 6 months ago

Hi suddenly I can no longer use

At a glance

The community member is experiencing an issue with the VectorStoreIndex from the llama-index package, version 0.8.45.post1. The code was working previously, but now the community member is unable to import the VectorStoreIndex class. The community members suggest trying to reinstall the llama-index package, but that did not resolve the issue. They also suggest checking for any files or folders named llama_index and deleting or renaming them, or trying a fresh virtual environment. However, there is no explicitly marked answer in the comments.

Hi, suddenly I can no longer use VectorStoreIndex. It's already imported, my whole code is working before. My llama-index version is 0.8.45.post1 can someone help? This is most likely a package issue since I got my whole code already working yesterday.
L
g
7 comments
What is the issue?
Plain Text
from llama_index import VectorStoreIndex

ImportError: cannot import name 'VectorStoreIndex' from 'llama_index' (/home/gerald.villaran/anaconda3/envs/venv/lib/python3.10/site-packages/llama_index/__init__.py)
huh, that's pretty weird.

I would just reinstall

Plain Text
pip uninstall llama_index
pip install llama_index
no go. did it twice
do you have some file or falder named llama_index?
I would delete/rename that if so. Otherwise, I would try a fresh venv
Thanks for that!
Add a reply
Sign up and join the conversation on Discord