aws-samples / bedrock-claude-chat

AWS-native chatbot using Bedrock + Claude (+Mistral)
MIT No Attribution
688 stars 232 forks source link

[BUG] CodeBuild Failed because of conflict in dependencies version (requests, youtube-transcript-api, unstructured, poetry) #322

Closed lestesim closed 1 month ago

lestesim commented 1 month ago

Describe the bug

After running the deployment commands, I got an error stating that the CodeBuild Project has failed. Reading the CodeBuild logs, it looks like there are issues with the dependencies in backend>requirements.txt or backend>embedding.requirements.txt

Reading the latest commit, it looks like there was an update for request library from 2.31 to 2.32. Not sure if this is causing the issues. https://github.com/aws-samples/bedrock-claude-chat/pull/320

To Reproduce

Steps to reproduce the behavior:

git clone https://github.com/aws-samples/bedrock-claude-chat.git cd bedrock-claude-chat chmod +x bin.sh ./bin.sh

Starting CodeBuild project: Project-qxNZGb2flPXV... Waiting for the CodeBuild project to complete... CodeBuild project completed with status: FAILED Build Log Group Name: /aws/codebuild/Project-qxNZGb2flPXV Build Log Stream Name: f1a67c21-5ab7-4666-b789-822d3d53ce88 Fetch CDK deployment logs... Frontend URL:

Screenshots

image

poetry dependencies error: image

requests, youtube-transcript-api, unstructured dependencies error image

Additional context

I tried to follow the recommendation of removing the versions of requests, youtube-transcript-api, unstructured in the embedding.requirements.txt to let pip resolve the dependencies issue, however, it is still raising the same error.