llamabot icon indicating copy to clipboard operation
llamabot copied to clipboard

ImportError: cannot import name 'GPTVectorStoreIndex' from 'llama_index' (unknown location)

Open aarontj73 opened this issue 9 months ago • 2 comments

After installing llamabot in a fresh conda env with python 3.9 i get the error in the title. Any fixes recommended?

aarontj73 avatar May 03 '24 15:05 aarontj73

I had the same error in a fresh python3.10 conda environment. The error is because I was working with an old version of llamabot - v0.0.62. This is the version that is compatible with 3.10.

I did a fresh python3.11 conda environment and then pip install llamabot. This installed the latest version of llamabot, v0.4.4. The error resolved for me! So I recommend upgrading to 3.11 environment and retrying the llamabot install.

jackievaleri avatar May 08 '24 23:05 jackievaleri

Thanks for reporting the error, @aarontj73, and thanks for chiming in, @jackievaleri! It looks like I should push a change that sets the minimum version of Python to 3.10 or 3.11, I think, which is what is tested on CI/CD.

ericmjl avatar May 29 '24 10:05 ericmjl