Find answers from the community

Updated 2 months ago

im having a very banal issues it seems

im having a very banal issues it seems. doing:
Plain Text
from llama_index import LlamaIndex

fails with ModuleNotFoundError: No module named 'langchain.embeddings.base'
is this a known issue?
4
b
n
D
26 comments
do you have langchain installed
are you using a virtualenv?
try pip install langchain
i did just now. same error
not using a venv
this is all in a colab
Same for me, when importing servicecontext. With the same code that was working before
Plain Text
from llama_index import ServiceContext
same issue here
I feel like I am on my first day with llama index lol
pip install llama-index
i did this
from llama_index import ServiceContext
try this then
same issue
Same with regular setup that worked 1000 times
@Logan M anything with new version?
very basic use case here. installing llama-index and trying to do a hello-world πŸ˜„
Oh, looks like the latest version of Langchain has some breaking changes...
If you roll back to this it should work:

pip install langchain==0.0.281
Yea PR to fix it here
https://github.com/jerryjliu/llama_index/pull/7714

Just downgrade langchain for now
@Logan M Thanks, saved my day... again!
Published a new release -- v0.8.29.post1 -- should be on pypi soon πŸ™‚
came here looking for same thing heh
Add a reply
Sign up and join the conversation on Discord