Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Runtime.ImportModuleError: Unable to import module 'index_creation_app': cannot import name 'BaseCache' from 'langchain' #6

Open
nghtm opened this issue Oct 31, 2023 · 1 comment

Comments

@nghtm
Copy link

nghtm commented Oct 31, 2023

Read-source-and-build-index-fn Lambda Function is failing with:

[ERROR] Runtime.ImportModuleError: Unable to import module 'index_creation_app': cannot import name 'BaseCache' from 'langchain' (/var/task/langchain/__init__.py)Traceback (most recent call last): | [ERROR] Runtime.ImportModuleError: Unable to import module 'index_creation_app': cannot import name 'BaseCache' from 'langchain' (/var/task/langchain/__init__.py) Traceback (most recent call last):
-- | --

nghtm added a commit to nghtm/aws-lex-conv-faq that referenced this issue Oct 31, 2023
This is a fix for Github issue aws-samples#6 , need to install the latest version of llama-index
@alifatmi
Copy link

use compatible langchain version, langchain==0.0.196 update it in requirements files, then it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants