AutoGPT: local cache error

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

Using memory of type: LocalCache Traceback (most recent call last): File “C:\WINDOWS\system32\Auto-GPT\scripts\main.py”, line 318, in <module> assistant_reply = chat.chat_with_ai( ^^^^^^^^^^^^^^^^^^ File “C:\WINDOWS\system32\Auto-GPT\scripts\chat.py”, line 67, in chat_with_ai if cfg.debug_mode: ^^^^^^^^^^^^^^ AttributeError: ‘Config’ object has no attribute ‘debug_mode’. Did you mean: ‘set_debug_mode’?

Current behavior 😯

i get the error above

Expected behavior 🤔

i get the error above

Your prompt 📝

# Paste your prompt here

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Same (or similar) issue on macOS Ventura 13.3

Getting this after “Continue (y/n)”:

Using memory of type: LocalCache
Traceback (most recent call last):
  File "/Users/xxxx/Documents/Auto-GPT/scripts/main.py", line 321, in <module>
    assistant_reply = chat.chat_with_ai(
  File "/Users/xxxx/Documents/Auto-GPT/scripts/chat.py", line 67, in chat_with_ai
    if cfg.debug:
AttributeError: 'Config' object has no attribute 'debug'

I got it to work by adding one line.

Under

self.debug_mode = False I added

self.debug = False

I’m not a coder but seems usage of debug and debug_mode aren’t used consistently throughout the codebase

I got it to work by adding one line.

Under

self.debug_mode = False I added

self.debug = False

I’m not a coder but seems usage of debug and debug_mode aren’t used consistently throughout the codebase

This solves it, thanks a lot!

This is weird and almost surely related to #695 ? I had clean-cloned twice and got the same, then modified the lines from chat.py that contain ‘if cfg.debug’ back to ‘if cfg.debug_mode’ and it works (lol).

I am a noob, so take this with the appropriate grain of salt.