Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.45k stars 44.06k forks source link

Command read_file returned: Error: read file failed: no such file or directory #4864

Closed thedreamakeem closed 11 months ago

thedreamakeem commented 1 year ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Latest Release

Do you use OpenAI GPT-3 or GPT-4?

GPT-3.5

Which area covers your issue best?

Commands

Describe your issue.

Currently running a prompt to generate lyrics for performing certain tasks. after browsing web i get the response "CODEFLOWGPT THOUGHTS: I should use the 'read_file' command to access the lyrics of 'Codiene' by Baby Mane that I previously saved to a file. REASONING: I saved the lyrics to a file, so I can use the 'read_file' command to retrieve them."

i don't think that the Agent actually saved/created to file, but it tries to read file anyways and it fails.

Screen Shot 2023-07-01 at 10 58 05 AM

Upload Activity Log Content

No response

Upload Error Log Content

No response

PDGIII commented 1 year ago

Having a similar issue using docker: SYSTEM: Command read_file returned: Error: read_file /app/autogpt/workspace/auto_gpt_workspace/news_headlines.txt failed: no such file or directory

It didn't seem to write said file to that dir.

Natsu-Dragneel-Aka commented 1 year ago

Not sure havent checked the code yet but i think its not related to code but gpt response, rite now oly way to add restriction in promt like 'be sure to run command write file before read file.

abdhass commented 1 year ago

change the volume in docker to - ./auto_gpt_workspace:/app/autogpt/workspace/auto_gpt_workspace (notice the addition of the directory workspace).

eddyplural commented 1 year ago

I had the same issue, this could do with being updated in the docker-compose.yml template on the setup.md file

github-actions[bot] commented 12 months ago

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] commented 11 months ago

This issue was closed automatically because it has been stale for 10 days with no activity.