AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Error: [Errno 2] No such file or directory: '/app/autogpt/auto_gpt_workspace/analyzing_code_resources.txt'

Open m2web opened this issue 1 year ago • 1 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Windows

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-4

Steps to reproduce 🕹

Hello, I have Docker Engine: v23.0.5 installed on my Windows 11 system: Device name DESKTOP-BR549 System type 64-bit operating system, x64-based processor

Edition Windows 11 Home Version 22H2 Installed on ‎11/‎4/‎2022

I pulled the lates commit: ea080500494ccfeb1ea3503cb476d81857ebf83d.

Current behavior 😯

Issued the following from the CLI: docker-compose run --rm auto-gpt

Eventually, here was the error:

Command read_file returned: Error: [Errno 2] No such file or directory: '/app/autogpt/auto_gpt_workspace/analyzing_code_resources.txt'
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/app/autogpt/cli.py", line 90, in main
    run_auto_gpt(
  File "/app/autogpt/main.py", line 186, in run_auto_gpt
    agent.start_interaction_loop()
  File "/app/autogpt/agent/agent.py", line 112, in start_interaction_loop
    assistant_reply = chat_with_ai(
  File "/app/autogpt/llm/chat.py", line 165, in chat_with_ai
    agent.summary_memory = update_running_summary(
  File "/app/autogpt/memory_management/summary_memory.py", line 78, in update_running_summary
    content_dict = json.loads(event["content"])
  File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Expected behavior 🤔

The process would continue to the next agent action.

Your prompt 📝

# Paste your prompt here

Looked in the ai_settings.yaml and nothing about a prompt.

Your Logs 📒

<insert your logs here>

Not sure where to look for the logs in the Docker Desktop client.

m2web avatar May 04 '23 23:05 m2web

It appears that .../auto_gpt_workspace/ is a typo somewhere that should say .../commands

Seeing this on Mac with a fresh install of 0.3.0

0xc00010ff avatar May 05 '23 04:05 0xc00010ff

Fixed with https://github.com/Significant-Gravitas/Auto-GPT/pull/3996

k-boikov avatar May 12 '23 20:05 k-boikov