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

Uncaught AttributeError in sendchat.py line 30 #1892

Closed
KashifManzoor64 opened this issue Oct 2, 2024 · 2 comments
Closed

Uncaught AttributeError in sendchat.py line 30 #1892

KashifManzoor64 opened this issue Oct 2, 2024 · 2 comments

Comments

@KashifManzoor64
Copy link

Aider version: 0.54.7

An uncaught exception occurred:

Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "__main__.py", line 7, in <module>
    sys.exit(main())
  File "main.py", line 640, in main
  File "base_coder.py", line 727, in run
    while True:
  File "base_coder.py", line 770, in run_one
  File "base_coder.py", line 1157, in send_message
    if messages[-1]["role"] == "assistant":
  File "base_coder.py", line 1835, in auto_commit
    self.reflected_message = str(err)
  File "repo.py", line 101, in commit
    return
  File "repo.py", line 181, in get_commit_message
    content += diffs
  File "sendchat.py", line 38, in wrapper
    retry_exceptions(),
  File "sendchat.py", line 30, in retry_exceptions
    litellm.llms.anthropic.chat.AnthropicError,
AttributeError: module 'litellm.llms.anthropic' has no attribute 'AnthropicError'

@KashifManzoor64
Copy link
Author

Faced above issue while creating the files

@fry69
Copy link
Collaborator

fry69 commented Oct 2, 2024

Thank you for filing this issue.

The fix is in the latest version (0.58.1), please update aider with

aider --upgrade

Please do not forget to exit and restart aider after it updated itself.

Duplicate #1278

@fry69 fry69 closed this as completed Oct 2, 2024
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