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

litellm APIConnection error - missing boto3 #2751

Open
sringopi opened this issue Jan 2, 2025 · 0 comments
Open

litellm APIConnection error - missing boto3 #2751

sringopi opened this issue Jan 2, 2025 · 0 comments

Comments

@sringopi
Copy link

sringopi commented Jan 2, 2025

Issue

When running a model from Bedrock, getting a boto3 library error, potentially because of litellm issue.

 % aider --model bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.70.0
Main model: bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0 with diff edit format, infinite output
Weak model: bedrock/anthropic.claude-3-5-haiku-20241022-v1:0
Git repo: .git with 425 files
Repo-map: using 1024 tokens, auto refresh
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> help                                                                                                                                                               


litellm.APIConnectionError: Missing boto3 to call bedrock. Run 'pip install boto3'.
Traceback (most recent call last):
  File "/Users/tom/.local/share/uv/tools/aider-chat/lib/python3.12/site-packages/litellm/llms/bedrock/chat/converse_handler.py", line 206, in completion
    import boto3
ModuleNotFoundError: No module named 'boto3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tom/.local/share/uv/tools/aider-chat/lib/python3.12/site-packages/litellm/main.py", line 2610, in completion
    response = bedrock_converse_chat_completion.completion(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tom/.local/share/uv/tools/aider-chat/lib/python3.12/site-packages/litellm/llms/bedrock/chat/converse_handler.py", line 211, in completion
    raise ImportError("Missing boto3 to call bedrock. Run 'pip install boto3'.")
ImportError: Missing boto3 to call bedrock. Run 'pip install boto3'.

You need to: pip install boto3

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>  

Version and model info

Aider v0.70.0
Main model: bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0
Testing on git repo of aider.

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

1 participant