Find answers from the community

Updated 3 months ago

Hello first time in Discord

Hello, first time in Discord!

I am running my first app using llama-index to chat with my PDF. All my dependencies are up to date however I am getting this error:

ImportError: cannot import name 'BaseCache' from 'langchain' (/venv/lib/python3.11/site-packages/langchain/init.py)

I shortened the path, but I am inside a venv.

Has anyone had this issue and know the solution?

Thanks,
L
t
3 comments
I think you either need to downgrade or upgrade your langchain version? I haven't actually run into this yet
Thanks! I ran python3 -m pip install --upgrade llama-index and it added some other dependencies and worked. I had just installed llama index so I never thought to perform an upgrade at the same time.
Interesting, good to know!
Add a reply
Sign up and join the conversation on Discord