AutoGPT 文件读取错误:没有这样的文件或目录 [关闭]

问题描述 投票:0回答:0

问题:

我正在使用 AutoGPT 查找和读取“auto_gpt_workspace”文件夹中的 .txt 文件。该脚本可以找到这些文件,但是当它尝试读取它们时遇到错误。主要报错信息如下:

read_file returned: Error: [Errno 2] No such file or directory:

AutoGPT 正在寻找此路径中的文件:

'C:\\Users\\nico\\Desktop\\Auto-GPT\\Auto-GPT\\auto_gpt_workspace\\02- Planning Your Vegetable Garden.txt'

但是,当我手动检查文件路径时,它显示为:

"C:\Users\nico\Desktop\Auto-GPT\Auto-GPT\auto_gpt_workspace\2- Planning Your Vegetable Garden.txt"

两个路径之间的主要区别是文件编号中的前导零。我该如何解决这个问题,以便 AutoGPT 可以正确读取文件?

或者这甚至是问题所在?

我也在使用 onlygpt3 模式

python file-io file-not-found autogpt
© www.soinside.com 2019 - 2024. All rights reserved.