Find answers from the community

Updated 4 months ago

Hi

Hi
I am trying to imoprt the PGVectorStore and getting the the circular import error

from llama_index.vector_stores.postgres import PGVectorStore

ERROR
ImportError: cannot import name 'PGVectorStore' from partially initialized module 'llama_index.vector_stores.postgres' (most likely due to a circular import)

Can anyone help me with this?
L
B
5 comments
Works fine for me in a fresh install

Maybe try with a fresh venv?
I tried by curating new environment
used these two commands

  • pip install llama-index-vector-stores-postgres
  • pip install llama-index
Thank you for sharing, let me check it.
Add a reply
Sign up and join the conversation on Discord