Path mismatch when "Auto-GPT" is stored on the network device. #2560
GHRnew
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running in VSC on windows 10 PC.
Auto-GPT was continuously having problem with accessing "the working directory".
So I gave the Auto-GPT following task.
AI Name: try to access the working directory
try to access the working directory is: an AI that will check if the working directory can be accessed by writing a test text file to it. If not, suggest how to repair the error
Goal 1: Write a dummy test file to a working directory
Goal 2: If this is not possible analyze why and give suggestion how to repair mistake
Goal 3: If writing a dummy test file to a working directory was possible confirm
Goal 4: Shutdown upon achieving your goals
Following error appears during the run:
After some debugging, I found the problem.
I added the two print statement in the safe_path_join within the ./autogpt/workspace.py:
This resulted with following printout:
Solution was to add
base = base.resolve(strict=False)
before
joined_path = base.joinpath(*paths).resolve()
in the named file.
Now it works, both paths are the same
The final safe_path_join is as follows, with removed my two print statement and added one line to set the common value for the path:
Beta Was this translation helpful? Give feedback.
All reactions