aws-samples / aws-samples/aws-lex-conv-faq

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

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
6
PR merge metrics
No merged PRs in 30d

Description

`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):
-- | --

```

Contributor guide

Open the contributing guide

Research direction

Start by locating the Read-source-and-build-index-fn Lambda and its index_creation_app module, then inspect the packaged langchain dependency and the import that references BaseCache. Reproduce the deployment or import failure and verify that the Lambda can load index_creation_app successfully without the ImportModuleError.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
backend, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.